Get-Help: Getting detail help information on PowerShell Commands

The usage is actually the same as man command in Linux environment. If you are looking on the command details and usage, you can use the get-help command.

Please see an example below, we are looking for details information on command cp.

PS C:\> get-help cp

NAME
    Copy-Item

SYNTAX
    Copy-Item [-Path] <string[]> [[-Destination] <string>] [-Container] [-Force] [-Filter <string>] [-Include
    <string[]>] [-Exclude <string[]>] [-Recurse] [-PassThru] [-Credential <pscredential>] [-WhatIf] [-Confirm]
    [-UseTransaction]  [<CommonParameters>]

    Copy-Item [[-Destination] <string>] -LiteralPath <string[]> [-Container] [-Force] [-Filter <string>] [-Include
    <string[]>] [-Exclude <string[]>] [-Recurse] [-PassThru] [-Credential <pscredential>] [-WhatIf] [-Confirm]
    [-UseTransaction]  [<CommonParameters>]


ALIASES
    cpi
    cp
    copy


REMARKS
    Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
        -- To download and install Help files for the module that includes this cmdlet, use Update-Help.
        -- To view the Help topic for this cmdlet online, type: "Get-Help Copy-Item -Online" or
           go to http://go.microsoft.com/fwlink/?LinkID=113292.

By the way, for you information, you can get the same information by executing the help or man command which is actually the same as Linux environment.

man cp
help cp

If you notice on above message (on the remarks), “Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.” You can actually view the message via online by executing below command and it will automatically open it on the web browser.

Get-Help Copy-Item -Online

If you don’t want to view it online, just download it using below command

PS C:\> Update-Help


 Updating Help for module CimCmdlets
    Downloading Help Content...

You May Also Like

Leave a Reply?