you can define a proxy which can be used by Powershell.
Just try:
$webclient = New-Object System.Net.WebClient
$creds = Get-Credential
$webclient.Proxy.Credentials = $creds
$creds = Get-Credential
$webclient.Proxy.Credentials = $creds
And then try Update-Help. If it works like expected, you could also work with scripted credentials (replace "username" and "password").
$webclient = New-Object System.Net.WebClient
$pwd = ConvertTo-SecureString "password" -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential("username",$pwd)
$webclient.Proxy.Credentials = $creds
$pwd = ConvertTo-SecureString "password" -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential("username",$pwd)
$webclient.Proxy.Credentials = $creds
No comments:
Post a Comment