Powershell Tip #54: Identify mandatory parameters

By | October 9, 2015

Tip: You can identify mandatory parameters in different ways :

Get-Help

get-help-mandatory-parameter

Show-Command

show-command-mandatory-parameter

Get-Command

get-command-mandatory-parameter

WhatIf

whatif-mandatory-parameter

The -WhatIf parameter is used in this case only because New-ADUser is a cmdlet modifying the system state (it does modify objects).
This parameter is not available with Get-ADUser for example because it performs only read operations.

ISESteroids

isesteroids-mandatory-parameters


previous-buttonnext-button

Leave a Reply

Your email address will not be published.