PS > $Creds=Get-Credential PowerShell credential request Enter your credentials. User: [ユーザ名] Password for user [ユーザ名]: [パスワード] PS > $Wcl=New-Object System.Net.WebClient PS > $Wcl.Proxy.Credentials=$Creds PS > Invoke-WebRequest http://wiki.examind.net
$tmpCred = Get-Credential $tmpCred.Password | ConvertFrom-SecureString | Set-Content "pwd.dat"
PS > $password = Get-Content "pwd.dat" | ConvertTo-SecureString PS > $credential = New-Object System.Management.Automation.PsCredential "[ユーザ名]", $password PS > $wc = New-Object System.Net.WebClient PS > $wc.Proxy.Credentials = $credential
PS > Invoke-WebRequest http://wiki.examind.net