インターネットから 51 GB の zip ファイルをダウンロードする必要があります。ウェブサイトを開くには、パスワードを入力する必要があります。
PowerShell (PSVersion:5.1.18362.752) の関数でこれを実行したいのですが、それ以上はできません。私の関数は次のようになります。
$securepassword = "thepassword"
function Get-Files {
$Properties = @{
URI = "https://theurl"
Credential = $securepassword
}
Invoke-WebRequest @Properties -OutFile "C:\Users\$env:USERNAME\Desktop\thefiles.zip"
}
パラメーター Credential は Windows Credential にのみ使用できますか?
助けてくれてありがとう