Update help files using elevated command

Update-Help

Discover commands

Discover all nouns of PowerShell modules

Get-Command -Module Microsoft.PowerShell* | group Noun | Format-Wide -AutoSize

Discover all commands about a noun

Get-Command -Noun Web* | foreach { Get-Help $_ } | Format-Table Name, Synopsis

Discover all modules

Get-Module
Get-Module -ListAvailable

Access documentation

Example command:

$help = Get-Help -Name Invoke-WebRequest

Show help online

Get-Help -Name Invoke-WebRequest -Online
  • abbreviate help Invoke-WebRequest -Online

Learn syntax

$help.syntax
  • abbreviate (help Invoke-WebRequest).syntax or (Invoke-WebRequest -?).syntax

Learn purpose

$help.Synopsis
  • abbreviate (help Invoke-WebRequest).Synopsis or (Invoke-WebRequest -?).Synopsis

Read description

$help.description
  • abbreviate (help Invoke-WebRequest).description or (Invoke-WebRequest -?).description

See examples

$help.examples
  • abbreviate help Invoke-WebRequest -Examples or (Invoke-WebRequest -?).examples

Sources:

Related:

Tags:
PowerShell - A command-line shell and scripting language to manage Windows system and automate administrative tasks