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:
Get-Command -Verb ConvertTo | ForEach-Object Name
"---"
Get-Command -Noun Content | ForEach-Object Name
"---"
Get-Command *-Csv | ForEach-Object NameConvertTo-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:
$cmd = Get-Command Get-ChildItem
$cmd.CommandType
$cmd.Source
(Get-Command gci).DefinitionCmdlet
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:
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:
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 AdaBuilds 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:
$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:
'hello' | Get-Member -MemberType Method -Name ToUpper, Trim*, Split | ForEach-Object Name
"---"
(Get-Date -Date '2026-05-01').GetType().FullNameToUpper
Trim
TrimEnd
TrimStart
Split
---
System.DateTime
.GetType() is a quick alternative when you only need the type name.
A discovery workflow
- "Is there a command for JSON?" →
Get-Command *json* - "How do I use it?" →
Get-Help ConvertFrom-Json -Examples - "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?
- Get-Help
- Get-Command
- Get-Member
- Get-Item
How do you list every command whose noun is Content?
- Get-Help Content
- Get-Command -Noun Content
- Get-Member Content
- Find-Content
What does Get-Help read for a function you wrote yourself?
- Nothing, help only works for cmdlets
- Its comment-based help (.SYNOPSIS, .EXAMPLE, ...)
- The file name
- Online documentation