Skip to content

Commit 26ad6fe

Browse files
Update New-ADOrganizationalUnit.md
Updated some wording.
1 parent 4eb7468 commit 26ad6fe

File tree

1 file changed

+23
-33
lines changed

1 file changed

+23
-33
lines changed

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

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ schema: 2.0.0
88
# New-ADOrganizationalUnit
99

1010
## SYNOPSIS
11+
1112
Creates a new Active Directory organizational unit.
1213

1314
## SYNTAX
@@ -40,8 +41,7 @@ You can override property values from the template by setting cmdlet parameters.
4041
For more information, see the *Instance* parameter description for this cmdlet.
4142

4243
Method 3: Use the **Import-Csv** cmdlet with the **New-ADOrganizationalUnit** cmdlet to create multiple Active Directory OU objects.
43-
To do this, use the [**Import-Csv**](/powershell/module/microsoft.powershell.utility/import-csv) cmdlet to create the custom objects
44-
from a comma-separated value (CSV) file that contains a list of object properties.
44+
To do this, use the [**Import-Csv**](/powershell/module/microsoft.powershell.utility/import-csv) cmdlet to create the custom objects from a comma-separated value (CSV) file that contains a list of object properties.
4545
Then pass these objects through the pipeline to the **New-ADOrganizationalUnit** cmdlet to create the OU objects.
4646

4747
## EXAMPLES
@@ -93,20 +93,16 @@ This command creates an OU named Managed in an AD LDS instance.
9393
### -AuthType
9494

9595
Specifies the authentication method to use.
96-
Possible values for this parameter include:
9796

98-
Negotiate or 0
97+
The acceptable values for this parameter are:
9998

100-
Basic or 1
99+
- Negotiate or 0
100+
- Basic or 1
101101

102102
The default authentication method is Negotiate.
103103

104104
A Secure Sockets Layer (SSL) connection is required for the Basic authentication method.
105105

106-
The following example shows how to set this parameter to Basic.
107-
108-
-AuthType Basic
109-
110106
```yaml
111107
Type: ADAuthType
112108
Parameter Sets: (All)
@@ -122,14 +118,10 @@ Accept wildcard characters: False
122118
123119
### -City
124120
125-
Specifies the user's town or city.
126-
This parameter sets the City property of a user.
121+
Specifies the town or city.
122+
This parameter sets the **City** property of an OU object.
127123
The Lightweight Directory Access Protocol (LDAP) display name (**ldapDisplayName**) of this property is `l`.
128124

129-
The following example shows how set this parameter.
130-
131-
-City "Las Vegas"
132-
133125
```yaml
134126
Type: String
135127
Parameter Sets: (All)
@@ -160,15 +152,11 @@ Accept wildcard characters: False
160152

161153
### -Country
162154

163-
Specifies the country or region code for the user's language of choice.
164-
This parameter sets the Country property of a user object.
155+
Specifies the country or region code.
156+
This parameter sets the **Country** property of an OU object.
165157
The LDAP display name (**ldapDisplayName**) of this property is `c`.
166158
This value is not used by Windows 2000.
167159

168-
The following example shows how set this parameter.
169-
170-
-Country "IN"
171-
172160
```yaml
173161
Type: String
174162
Parameter Sets: (All)
@@ -210,7 +198,7 @@ Accept wildcard characters: False
210198
### -Description
211199

212200
Specifies a description of the object.
213-
This parameter sets the value of the Description property for the object.
201+
This parameter sets the value of the **Description** property for the OU object.
214202
The LDAP display name (**ldapDisplayName**) for this property is `description`.
215203

216204
```yaml
@@ -228,7 +216,7 @@ Accept wildcard characters: False
228216
### -DisplayName
229217

230218
Specifies the display name of the object.
231-
This parameter sets the DisplayName property of the object.
219+
This parameter sets the **DisplayName** property of the OU object.
232220
The LDAP display name (**ldapDisplayName**) for this property is `displayName`.
233221

234222
```yaml
@@ -258,9 +246,9 @@ Method 2: Create a new **ADOrganizationalUnit** object and set the property valu
258246
Then pass this object to the *Instance* parameter of the **New-ADOrganizationalUnit** cmdlet to create the new Active Directory OU object.
259247

260248
```powershell
261-
$OrganizationalUnitInstance = new-object Microsoft.ActiveDirectory.Management.ADOrganizationalUnit
249+
$OrganizationalUnitInstance = New-Object -ComObject Microsoft.ActiveDirectory.Management.ADOrganizationalUnit
262250
$OrganizationalUnitInstance.Country = Australia
263-
New-ADOrganizationalUnit -Name accountingAustralia -Instance $OrganizationalUnitInstance
251+
New-ADOrganizationalUnit -Name accountingAustralia -Instance $OrganizationalUnitInstance
264252
```
265253

266254
> [!NOTE]
@@ -281,7 +269,7 @@ Accept wildcard characters: False
281269
### -ManagedBy
282270

283271
Specifies the user or group that manages the object by providing one of the following property values.
284-
Note: The identifier in parentheses is the LDAP display name for the property.
272+
Note: The identifier in parentheses is the LDAP display name for the property.
285273
The acceptable values for this parameter are:
286274

287275
- A distinguished name
@@ -380,13 +368,15 @@ Note that rules listed first are evaluated first and when a default value can be
380368
In Active Directory Domain Services (AD DS) environments, a default value for *Path* is set in the following cases:
381369

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

386375
In AD LDS environments, a default value for *Path* is set in the following cases:
387376

388377
- 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.
389-
- If the cmdlet has a default path, this is used. For example: in **New-ADUser**, the *Path* parameter defaults to the Users container.
378+
- If the cmdlet has a default path, this is used.
379+
For example: in **New-ADUser**, the *Path* parameter defaults to the Users container.
390380
- If the target AD LDS instance has a default naming context, the default value of *Path* is set to the default naming context.
391381
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.
392382
- If none of the previous cases apply, the *Path* parameter does not take any default value.
@@ -429,7 +419,7 @@ Accept wildcard characters: False
429419
### -ProtectedFromAccidentalDeletion
430420

431421
Indicates whether to prevent the object from being deleted.
432-
When this property is set to $True, you cannot delete the corresponding object without changing the value of the property.
422+
When this property is set to $True, you cannot delete the corresponding object without changing the value of the property.
433423
The acceptable values for this parameter are:
434424

435425
- $False or 0
@@ -544,19 +534,19 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
544534

545535
### None or Microsoft.ActiveDirectory.Management.ADOrganizationalUnit
546536

547-
An organizational unit object that is a template for the new organizational unit object is received by the Instance parameter.
537+
An OU object that is a template for the new OU object is received by the **Instance** parameter.
548538

549539
## OUTPUTS
550540

551541
### None or Microsoft.ActiveDirectory.Management.ADOrganizationalUnit
552542

553-
Returns the new organizational unit object when the PassThru parameter is specified.
543+
Returns the new OU object when the **PassThru** parameter is specified.
554544
By default, this cmdlet does not generate any output.
555545

556546
## NOTES
557547

558-
* This cmdlet does not work with an Active Directory Snapshot.
559-
* This cmdlet does not work with a read-only domain controller.
548+
- This cmdlet does not work with an Active Directory Snapshot.
549+
- This cmdlet does not work with a read-only domain controller.
560550

561551
## RELATED LINKS
562552

0 commit comments

Comments
 (0)