Skip to content

Commit 627a12b

Browse files
committed
switch * to _
1 parent 3f98e1d commit 627a12b

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

docset/winserver2022-ps/activedirectory/New-ADUser.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,27 @@ New-ADUser [-WhatIf] [-Confirm] [-AccountExpirationDate <DateTime>] [-AccountNot
4242
The **New-ADUser** cmdlet creates an Active Directory user.
4343
You can set commonly used user property values by using the cmdlet parameters.
4444

45-
You can set property values that are not associated with cmdlet parameters by using the *OtherAttributes* parameter.
45+
You can set property values that are not associated with cmdlet parameters by using the _OtherAttributes_ parameter.
4646
When using this parameter, be sure to place single quotes around the attribute name.
4747

48-
You must specify the *SamAccountName* parameter to create a user.
48+
You must specify the _SamAccountName_ parameter to create a user.
4949

5050
You can use the **New-ADUser** cmdlet to create different types of user accounts such as iNetOrgPerson accounts.
51-
To do this in Active Directory Domain Services (AD DS), set the *Type* parameter to the Lightweight Directory Access Protocol (LDAP) display name for the type of account you want to create.
51+
To do this in Active Directory Domain Services (AD DS), set the _Type_ parameter to the Lightweight Directory Access Protocol (LDAP) display name for the type of account you want to create.
5252
This type can be any class in the Active Directory schema that is a subclass of user and that has an object category of person.
5353

54-
The *Path* parameter specifies the container or organizational unit (OU) for the new user.
55-
When you do not specify the *Path* parameter, the cmdlet creates a user object in the default container for user objects in the domain.
54+
The _Path_ parameter specifies the container or organizational unit (OU) for the new user.
55+
When you do not specify the _Path_ parameter, the cmdlet creates a user object in the default container for user objects in the domain.
5656

5757
The following methods explain different ways to create an object by using this cmdlet.
5858

5959
Method 1: Use the **New-ADUser** cmdlet, specify the required parameters, and set any additional property values by using the cmdlet parameters.
6060

6161
Method 2: Use a template to create the new object.
62-
To do this, create a new user object or retrieve a copy of an existing user object and set the *Instance* parameter to this object.
63-
The object provided to the *Instance* parameter is used as a template for the new object.
62+
To do this, create a new user object or retrieve a copy of an existing user object and set the _Instance_ parameter to this object.
63+
The object provided to the _Instance_ parameter is used as a template for the new object.
6464
You can override property values from the template by setting cmdlet parameters.
65-
For examples and more information, see the *Instance* parameter description for this cmdlet.
65+
For examples and more information, see the _Instance_ parameter description for this cmdlet.
6666

6767
Method 3: Use the Import-Csv cmdlet with the **New-ADUser** cmdlet to create multiple Active Directory user objects.
6868
To do this, use the **Import-Csv** cmdlet to create the custom objects from a comma-separated value (CSV) file that contains a list of object properties.
@@ -446,7 +446,7 @@ To specify this parameter, you can type a user name, such as User1 or Domain01\U
446446
If you specify a user name for this parameter, the cmdlet prompts for a password.
447447
448448
You can also create a **PSCredential** object by using a script or by using the **Get-Credential** cmdlet.
449-
You can then set the *Credential* parameter to the **PSCredential** object.
449+
You can then set the _Credential_ parameter to the **PSCredential** object.
450450
451451
If the acting credentials do not have directory-level permission to perform the task, Active Directory PowerShell returns a terminating error.
452452
@@ -749,11 +749,11 @@ You can construct a new user object using the Windows PowerShell command line or
749749

750750
Method 1: Use an existing user object as a template for a new object.
751751
To retrieve an instance of an existing user object, use a cmdlet such as **Get-ADUser**.
752-
Then provide this object to the *Instance* parameter of the **New-ADUser** cmdlet to create a new user object.
752+
Then provide this object to the _Instance_ parameter of the **New-ADUser** cmdlet to create a new user object.
753753
You can override property values of the new object by setting the appropriate parameters.
754754

755755
Method 2: Create a new **ADUser** object and set the property values by using the Windows PowerShell command line interface.
756-
Then pass this object to the *Instance* parameter of the **New-ADUser** cmdlet to create the new Active Directory user object.
756+
Then pass this object to the _Instance_ parameter of the **New-ADUser** cmdlet to create the new Active Directory user object.
757757

758758
Note: Specified attributes are not validated, so attempting to set attributes that do not exist or cannot be set raises an error.
759759

@@ -1049,28 +1049,28 @@ Accept wildcard characters: False
10491049

10501050
Specifies the X.500 path of the OU or container where the new object is created.
10511051

1052-
In many cases, a default value is used for the *Path* parameter if no value is specified.
1052+
In many cases, a default value is used for the _Path_ parameter if no value is specified.
10531053
The rules for determining the default value are given below.
10541054
Note that rules listed first are evaluated first and when a default value can be determined, no further rules are evaluated.
10551055

1056-
In Active Directory Domain Services (AD DS) environments, a default value for *Path* is set in the following cases:
1056+
In Active Directory Domain Services (AD DS) environments, a default value for _Path_ is set in the following cases:
10571057

10581058
- If the cmdlet is run from an Active Directory PowerShell provider drive, the parameter is set to the current path of the provider drive.
10591059
- If the cmdlet has a default path, this is used.
1060-
For example: in New-ADUser, the *Path* parameter defaults to the Users container.
1061-
- If none of the previous cases apply, the default value of *Path* is set to the default partition or naming context of the target domain.
1060+
For example: in New-ADUser, the _Path_ parameter defaults to the Users container.
1061+
- If none of the previous cases apply, the default value of _Path_ is set to the default partition or naming context of the target domain.
10621062

1063-
In AD LDS environments, a default value for *Path* is set in the following cases:
1063+
In AD LDS environments, a default value for _Path_ is set in the following cases:
10641064

10651065
- If the cmdlet is run from an Active Directory module for PowerShell provider drive, the parameter is set to the current path of the provider drive.
10661066
- If the cmdlet has a default path, this is used.
1067-
For example: in **New-ADUser**, the *Path* parameter defaults to the Users container.
1068-
- If the target AD LDS instance has a default naming context, the default value of *Path* is set to the default naming context.
1067+
For example: in **New-ADUser**, the _Path_ parameter defaults to the Users container.
1068+
- If the target AD LDS instance has a default naming context, the default value of _Path_ is set to the default naming context.
10691069
To specify a default naming context for an AD LDS environment, set the **msDS-defaultNamingContext** property of the Active Directory directory service agent object (**nTDSDSA**) for the AD LDS instance.
1070-
- If none of the previous cases apply, the *Path* parameter does not take any default value.
1070+
- If none of the previous cases apply, the _Path_ parameter does not take any default value.
10711071

1072-
Note: The Active Directory Provider cmdlets, such New-Item, Remove-Item, Remove-ItemProperty, *Rename-Item*, and Set-ItemProperty also contain a *Path* property.
1073-
However, for the Active Directory Provider cmdlets, the *Path* parameter identifies the path of the actual object rather than the container.
1072+
Note: The Active Directory Provider cmdlets, such New-Item, Remove-Item, Remove-ItemProperty, *Rename-Item*, and Set-ItemProperty also contain a _Path_ property.
1073+
However, for the Active Directory Provider cmdlets, the _Path_ parameter identifies the path of the actual object rather than the container.
10741074

10751075
```yaml
10761076
Type: String
@@ -1215,7 +1215,7 @@ Directory server values:
12151215

12161216
The default value for this parameter is determined by one of the following methods in the order that they are listed:
12171217

1218-
- By using the *Server* value from objects passed through the pipeline
1218+
- By using the _Server_ value from objects passed through the pipeline
12191219
- By using the server information associated with the AD DS Windows PowerShell provider drive, when the cmdlet runs in that drive
12201220
- By using the domain of the computer running Windows PowerShell
12211221

@@ -1370,7 +1370,7 @@ Accept wildcard characters: False
13701370
### -Type
13711371

13721372
Specifies the type of object to create.
1373-
Set the *Type* parameter to the LDAP display name of the Active Directory schema class that represents the type of object that you want to create.
1373+
Set the _Type_ parameter to the LDAP display name of the Active Directory schema class that represents the type of object that you want to create.
13741374
The selected type must be a subclass of the User schema class.
13751375
If this parameter is not specified it defaults to User.
13761376

@@ -1430,13 +1430,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
14301430

14311431
### None or Microsoft.ActiveDirectory.Management.ADUser
14321432

1433-
A user object that is a template for the new user object is received by the *Instance* parameter.
1433+
A user object that is a template for the new user object is received by the _Instance_ parameter.
14341434

14351435
## OUTPUTS
14361436

14371437
### None or Microsoft.ActiveDirectory.Management.ADUser
14381438

1439-
Returns the new user object when the *PassThru* parameter is specified.
1439+
Returns the new user object when the _PassThru_ parameter is specified.
14401440
By default, this cmdlet does not generate any output.
14411441

14421442
## NOTES

0 commit comments

Comments
 (0)