Get-Help -Online error

I wanted to use one of the new cool feature of powershell V3 but it failed with the following error:
‘Launching a program to show online help failed. No program is associated to launch URI’
I used procmon to quickly troubleshoot this

Get-help New-JobTrigger -Online

Get-help online error
It reports that HKCR\http\shell\open registry key does not exist.
I’ve verified it with powershell as well

Get-Item HKLM:\software\classes\http\shell\open

key does not exist

To fix this on a W7 computer, I just did:

New-Item -Path 'HKLM:\software\classes\http\shell\open' -Type container            
New-Item -Path 'HKLM:\software\classes\http\shell\open\command' -Type container            
Set-ItemProperty -Path 'HKLM:\software\classes\http\shell\open\command'  -Name '(default)' -Value '"C:\Program Files\Internet Explorer\iexplore.exe" %1'             

And voilà, the -Online switch of the Get-Help cmdlet works as expected 🙂
Note that this fix will probably not work a W8 as there are other additional values under HKLM:\software\classes\http\shell & HKLM:\software\classes\http\shell\open

Advertisements

2 thoughts on “Get-Help -Online error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s