You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get-help : Starting a browser to display online Help failed. No program or browser is associated to open the URI
https://go.microsoft.com/fwlink/?LinkID=113324.
At line:1 char:1+get-help-Online gps
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-Help], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.GetHelpCommand
Important: PR #3051 was merged as a temporary workaround to avoid the test failure. When fixing this issue, please make sure the changes in PR #3051 is reverted.
#3051 introduced the if((-not ($skipTest)) -and $IsWindows) block in test/powershell/engine/Help/HelpSystem.OnlineHelp.Tests.ps1 because our default-browser-discovery code, which was used in Get-Help -Online, didn't work correctly on the Azure code-coverage VM.
After #3281, that code was replaced by calling into ShellExecuteEx. We need to verify if Get-Help -Online works fine now on the Azure code-coverage VM, and if it does then this if block should be removed completely.
Just created a WS2016 VM in Azure and get-help -Online gps works as expected although you do get a bunch of warning dialog boxes due to Internet Explorer Enhanced Security Configuration (which is expected). However, if we use Server Core VMs, then I expect there to be no web browser (or GUI) available, so it depends on the type of VM we use for our nightly runs.
Closing this issue as the original issue doesn't repro.
so it depends on the type of VM we use for our nightly runs.
This doesn't affect our nightly build, which always use Windows Server 2012R2. #3051 was made only because the Get-Help -Online tests fail in code-coverage test run. Steve Lee (@SteveL-MSFT) are we using Server Core for code-coverage test run? If not, then I think the if((-not ($skipTest)) -and $IsWindows) block should be removed.
Dongbo Wang (@daxian-dbw) it doesn't make sense for us to use anything other than Server Core and Nano Server which both don't have a GUI, so for that reason, we probably need the code to be there
Activity
daxian-dbw commentedon Feb 1, 2017
Important: PR #3051 was merged as a temporary workaround to avoid the test failure. When fixing this issue, please make sure the changes in PR #3051 is reverted.
daxian-dbw commentedon Mar 21, 2017
#3051 introduced the
if((-not ($skipTest)) -and $IsWindows)block intest/powershell/engine/Help/HelpSystem.OnlineHelp.Tests.ps1because our default-browser-discovery code, which was used inGet-Help -Online, didn't work correctly on the Azure code-coverage VM.After #3281, that code was replaced by calling into
ShellExecuteEx. We need to verify ifGet-Help -Onlineworks fine now on the Azure code-coverage VM, and if it does then thisifblock should be removed completely.SteveL-MSFT commentedon Mar 21, 2017
Just created a WS2016 VM in Azure and
get-help -Online gpsworks as expected although you do get a bunch of warning dialog boxes due toInternet Explorer Enhanced Security Configuration(which is expected). However, if we use Server Core VMs, then I expect there to be no web browser (or GUI) available, so it depends on the type of VM we use for our nightly runs.Closing this issue as the original issue doesn't repro.
daxian-dbw commentedon Mar 21, 2017
This doesn't affect our nightly build, which always use Windows Server 2012R2. #3051 was made only because the
Get-Help -Onlinetests fail in code-coverage test run.Steve Lee (@SteveL-MSFT) are we using Server Core for code-coverage test run? If not, then I think the
if((-not ($skipTest)) -and $IsWindows)block should be removed.SteveL-MSFT commentedon Mar 21, 2017
cc James Truher (@JamesWTruher) are we using Server Core for CC? We probably should.
Dongbo Wang (@daxian-dbw) it doesn't make sense for us to use anything other than Server Core and Nano Server which both don't have a GUI, so for that reason, we probably need the code to be there
daxian-dbw commentedon Mar 21, 2017
Steve Lee (@SteveL-MSFT) I agree. That makes sense.