After installing Powershell 4.0 it's a good idea to update the help files, but if your behind an authenticating proxy like me (at work at least) here's a quick way to get things updated.
The error displayed:
PS C:\Windows\system32> Update-Help
Update-Help : Failed to update Help for the module(s) 'Microsoft.PowerShell.Management, CimCmdlets, ISE, Microsoft.Powe
rShell.Diagnostics, Microsoft.PowerShell.Host, Microsoft.PowerShell.Security, Microsoft.PowerShell.Utility, Microsoft.W
SMan.Management, PSDesiredStateConfiguration, PSScheduledJob, PSWorkflow, PSWorkflowUtility, Microsoft.PowerShell.Core'
with UI culture(s) {en-US} : Unable to connect to Help content. The server on which Help content is stored might not b
e available. Verify that the server is available, or wait until the server is back online, and then try the command aga
in.
At line:1 char:1
+ Update-Help
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnableToConnect,Microsoft.PowerShell.Commands.UpdateHelpCommand
$webclient = New-Object System.Net.WebClient
$creds = Get-Credential #Prompts for credentials
$webclient.Proxy.Credentials = $creds
Update-Help
For me, the following fixed the error that remained after doing what's listed in this article:
ReplyDelete$webclient.UseDefaultCredentials=$true
update-help
Works as well, also works within a script to authenticate for sending email trough powershell.
ReplyDelete