Mandatory positional parameters

Parameters that are mandatory and accept values based on position are written as follows:

SYNTAX
Get-ADUser [-Identity] <ADUser> ...

In this case, the Identity parameter name is optional but the value is not. The command may be used as described by either of the following examples:

Get-ADUser -Identity useridentity 
Get-ADUser useridentity 

In both cases, the supplied value fills the Identity parameter.

A command with more than one mandatory positional parameter may appear as follows:

SYNTAX
Add-Member [-NotePropertyName] <String> [-NotePropertyValue]
<Object> ...

In this case, the command may be called as follows:

Add-Member -NotePropertyName Name -NotePropertyValue "value" 
Add-Member -NotePropertyValue "value" -NotePropertyName Name 
Add-Member Name -NotePropertyValue "value" 
Add-Member Name "value" 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.242.235