【发布时间】:2015-07-03 11:35:17
【问题描述】:
什么相当于 PowerShell 版本 2 中的 Invoke-WebRequest 函数。这是我正在尝试使用我的函数执行的操作,因为我在 Windows Server 2003 上工作,因此无法升级到 PowerShell 4。
Invoke-WebRequest $uri -Body ($baseMessage | ConvertTo-Json -Compress) -Method Post -ContentType "application/json"
谢谢
【问题讨论】:
-
PowerShell 3.0 不适用于 Windows Server 2003。
标签: powershell windows-server-2003