February 2019
Intermediate to advanced
626 pages
15h 51m
English
Parameter help is most often written using the .PARAMETER tag, as shown in the following example:
function Get-Something { <# .SYNOPSIS Briefly describes the main action performed by Get-Something .DESCRIPTION A detailed description of the activities of Get-Something. .PARAMETER Parameter1 Describes the purpose of Parameter1. .PARAMETER Parameter2 Describes the purpose of Parameter2. #> param ( $Parameter1, $Parameter2 )}
It is also possible to write the help for a parameter above the parameter itself:
function Get-Something { <# .SYNOPSIS Briefly describes the main action performed by Get-Something .DESCRIPTION A detailed description of the activities of Get-Something. #> param ( # Describes the purpose of Parameter1. $Parameter1, ...Read now
Unlock full access