TExcelTAD
Home › PowerShell › PowerShell Help & Discovery

PowerShell Help & Discovery

PowerShell has thousands of commands, and nobody remembers them all. What experienced users do remember are three discovery cmdlets: Get-Command finds commands, Get-Help explains them, and Get-Member shows what an object contains. With these three you can teach yourself almost anything from inside the shell.

Get-Command: find a command

Search by verb, by noun or with wildcards:

powershell · try it yourself
Get-Command -Verb ConvertTo | ForEach-Object Name
"---"
Get-Command -Noun Content | ForEach-Object Name
"---"
Get-Command *-Csv | ForEach-Object Name
ConvertTo-CliXml
ConvertTo-Csv
ConvertTo-Html
ConvertTo-Json
ConvertTo-SecureString
ConvertTo-Xml
---
Add-Content
Clear-Content
Get-Content
Set-Content
---
ConvertFrom-Csv
ConvertTo-Csv
Export-Csv
Import-Csv

Ask about one command to see its type and the module it comes from:

powershell · try it yourself
$cmd = Get-Command Get-ChildItem
$cmd.CommandType
$cmd.Source
(Get-Command gci).Definition
Cmdlet
Microsoft.PowerShell.Management
Get-ChildItem

(Get-Command gci).Definition reveals what an alias points to. The same trick works for functions: Definition holds their source code.

Get-Help: read the manual

Get-Help <command> shows a command's syntax, description and examples. Useful variants:

text
Get-Help Get-ChildItem              # summary and syntax
Get-Help Get-ChildItem -Examples    # only the examples
Get-Help Get-ChildItem -Full        # everything, including every parameter
Get-Help Get-ChildItem -Online      # open the web page in your browser
Get-Help about_Operators            # conceptual "about_" topics
Update-Help                         # download the latest help files (once, as admin on Windows)

PowerShell 7 doesn't ship the full help text; run Update-Help once to download it. Help also works for your own functions if you write comment-based help above or inside them:

powershell · try it yourself
function Get-Greeting {
    <#
    .SYNOPSIS
    Builds a friendly greeting.
    .EXAMPLE
    Get-Greeting -Name Ada
    #>
    param([string]$Name = 'world')
    "Hello, $Name!"
}

(Get-Help Get-Greeting).Synopsis
Get-Greeting -Name Ada
Builds a friendly greeting.
Hello, Ada!

Get-Member: look inside an object

Every value in PowerShell is an object of some .NET type. Pipe it to Get-Member (alias gm) to see its type name and its members:

powershell · try it yourself
$book = [pscustomobject]@{ Title = 'Dune'; Pages = 412 }
$book | Get-Member

   TypeName: System.Management.Automation.PSCustomObject

Name        MemberType   Definition
----        ----------   ----------
Equals      Method       bool Equals(System.Object obj)
GetHashCode Method       int GetHashCode()
GetType     Method       type GetType()
ToString    Method       string ToString()
Pages       NoteProperty int Pages=412
Title       NoteProperty string Title=Dune

The output lists the TypeName, then each member with its MemberType: Method (something you can call, like ToString()) or NoteProperty/Property (data you can read). Filter the list when an object has many members:

powershell · try it yourself
'hello' | Get-Member -MemberType Method -Name ToUpper, Trim*, Split | ForEach-Object Name
"---"
(Get-Date -Date '2026-05-01').GetType().FullName
ToUpper
Trim
TrimEnd
TrimStart
Split
---
System.DateTime

.GetType() is a quick alternative when you only need the type name.

A discovery workflow

  1. "Is there a command for JSON?" → Get-Command *json*
  2. "How do I use it?" → Get-Help ConvertFrom-Json -Examples
  3. "What did it give me back?" → $result | Get-Member

Tip: Show-Command (Windows) opens a small form for any cmdlet, and in VS Code you get the same information as you type through IntelliSense.

Test yourself

Which cmdlet shows the properties and methods of an object?

  1. Get-Help
  2. Get-Command
  3. Get-Member
  4. Get-Item

How do you list every command whose noun is Content?

  1. Get-Help Content
  2. Get-Command -Noun Content
  3. Get-Member Content
  4. Find-Content

What does Get-Help read for a function you wrote yourself?

  1. Nothing, help only works for cmdlets
  2. Its comment-based help (.SYNOPSIS, .EXAMPLE, ...)
  3. The file name
  4. Online documentation