February 2019
Intermediate to advanced
626 pages
15h 51m
English
The syntax section lists each of the possible combinations of parameters a command will accept; each of these is known as a parameter set.
A command that has more than one parameter set is displayed as follows:
SYNTAX Get-Process [[-Name] <String[]>] [-ComputerName <String[]>] [-FileVersionInfo] [-Module] [<CommonParameters>] Get-Process [-ComputerName [<String[]>]] [-FileVersionInfo] [-Module] -InputObject <Process[]> [<CommonParameters>]
The syntax elements written in square brackets are optional; for example, syntax help for Get-Process shows that all of its parameters are optional, as shown in the following code:
SYNTAX Get-Process [[-Name] <String[]>] [-ComputerName <String[]>] [-FileVersionInfo] [-Module] [<CommonParameters>] ...
Read now
Unlock full access