#Fetch current IP address$ip = Invoke-RestMethod -Uri $ipuriInvoke-RestMethod -Method 'Get' -Uri $uri 第一个问题是$ip变量。编辑:更新(和工作)的代码如下所示: #Fetches current IPv4 a
我在将curl命令转换为Powershell Invoke-RestMethod时遇到问题。我已经尝试了许多不同的方法,但我得到了错误消息: Invoke-RestMethod : The remote server returned an error:(401) Unauthorized。UTF8.GetBytes("sometoken1234567890"))}
<em