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

One thought on “Powershell Tip #54: Identify mandatory parameters

  1. Pingback: Powershell Tip #53: Run PowerShell as SYSTEM (NT AUTHORITYSYSTEM) | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *