PowerShell supports both local help files and online resources. Take a look at the differences:

 
# outputs help in same console window
# level of detail depends on whether local help was
# downloaded using Update-Help
PS C:\> help -Name Get-Process

NAME
    Get-Process
    
SYNOPSIS
    Gets the processes that are running on the local computer or a remote computer.
    
    
SYNTAX
    Get-Process [[-Name] <String[]>] [-ComputerName <String[]>] [-FileVersionInfo] [-Module] []
    ...



# opens help in separate browser window
PS> help -Name Get-Process -Online 
 

By default, “help” (alias for Get-Help) outputs help information into the PowerShell output window. When you specify the -Online switch parameter, your browser displays the help file in a separate window. The online help document sports a nice formatting, and sample code can easily be copied and pasted via a “copy” button. And since the online documents are loaded directly from Microsoft, they are always up-to-date, and there is no need to download the help via Update-Help.

That’s why many users prefer the online help resources over the local help.

Even the many useful “about” topics exist online. About topics cover various aspects of the PowerShell language and engine. You find all about topics nicely sorted here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about




Twitter This Tip! ReTweet this Tip!

Anonymous