Skip to content

Commit 8939f48

Browse files
Update New-ADOrganizationalUnit.md
Edited content to be the same as other versions of the document set.
1 parent 27c542f commit 8939f48

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ You can override property values from the template by setting cmdlet parameters.
4444
For more information, see the *Instance* parameter description for this cmdlet.
4545

4646
Method 3: Use the **Import-Csv** cmdlet with the **New-ADOrganizationalUnit** cmdlet to create multiple Active Directory OU objects.
47-
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.
47+
To do this, use the [**Import-Csv**](https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-csv) cmdlet to create the custom objects
48+
from a comma-separated value (CSV) file that contains a list of object properties.
4849
Then pass these objects through the pipeline to the **New-ADOrganizationalUnit** cmdlet to create the OU objects.
4950

5051
## EXAMPLES
@@ -180,7 +181,7 @@ If the cmdlet is run from such a provider drive, the account associated with the
180181
To specify this parameter, you can type a user name, such as `User1` or `Domain01\User01` or you can specify a **PSCredential** object.
181182
If you specify a user name for this parameter, the cmdlet prompts for a password.
182183

183-
You can also create a **PSCredential** object by using a script or by using the **Get-Credential** cmdlet.
184+
You can also create a **PSCredential** object by using a script or by using the [Get-Credential](https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-credential?view=powershell-7.3) cmdlet.
184185
You can then set the *Credential* parameter to the **PSCredential** object.
185186

186187
If the acting credentials do not have directory-level permission to perform the task, Active Directory PowerShell returns a terminating error.
@@ -364,17 +365,15 @@ Note that rules listed first are evaluated first and when a default value can be
364365
In Active Directory Domain Services (AD DS) environments, a default value for *Path* is set in the following cases:
365366

366367
- If the cmdlet is run from an Active Directory PowerShell provider drive, the parameter is set to the current path of the provider drive.
367-
- If the cmdlet has a default path, this is used.
368-
For example: in New-ADUser, the *Path* parameter defaults to the Users container.
368+
- If the cmdlet has a default path, this is used. For example: in **New-ADUser**, the *Path* parameter defaults to the Users container.
369369
- 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.
370370

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

373373
- 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.
374-
- If the cmdlet has a default path, this is used.
375-
For example: in New-ADUser, the *Path* parameter defaults to the Users container.
374+
- If the cmdlet has a default path, this is used. For example: in **New-ADUser**, the *Path* parameter defaults to the Users container.
376375
- If the target AD LDS instance has a default naming context, the default value of *Path* is set to the default naming context.
377-
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.
376+
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.
378377
- If none of the previous cases apply, the *Path* parameter does not take any default value.
379378

380379
> [!NOTE]
@@ -438,14 +437,14 @@ Accept wildcard characters: False
438437
Specifies the AD DS instance to connect to, by providing one of the following values for a corresponding domain name or directory server.
439438
The service may be any of the following: AD LDS, AD DS, or Active Directory snapshot instance.
440439

441-
Specify the AD DS instance in one of the following ways:
440+
Specify the AD DS instance in one of the following ways:
442441

443442
Domain name values:
444443

445444
- Fully qualified domain name
446445
- NetBIOS name
447446

448-
Directory server values:
447+
Directory server values:
449448

450449
- Fully qualified directory server name
451450
- NetBIOS name
@@ -541,8 +540,8 @@ By default, this cmdlet does not generate any output.
541540

542541
## NOTES
543542

544-
- This cmdlet does not work with an Active Directory snapshot.
545-
- This cmdlet does not work with a read-only domain controller.
543+
* This cmdlet does not work with an Active Directory snapshot.
544+
* This cmdlet does not work with a read-only domain controller.
546545

547546
## RELATED LINKS
548547

0 commit comments

Comments
 (0)