【发布时间】:2019-08-16 14:51:17
【问题描述】:
我正在尝试使用 powershell 从以下链接下载软件包。 https://www.tenable.com/downloads/nessus-agents 当我点击下载时,我也没有这些包的直接链接,它要求同意。我可以使用下面显示的命令在 Linux 上做到这一点。请告诉我如何在 Windows 中做到这一点。
"wget --no-check-certificate --post-data='accept="I accept the terms of this license"&x=""&sid=5mcia8gchg28attkc9oarah153&p=NessusAgent-7.4.2-amzn.x86_64.rpm' 'https://www.tenable.com/downloads/nessus-agents' -O NessusAgent-7.4.2-amzn.x86_64.rpm"
在调用 webrequest 中找不到任何尝试过的选项
Invoke-RestMethod -Uri 'https://www.tenable.com/downloads/nessus-agents'
【问题讨论】:
标签: powershell wget invoke-webrequest