You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docset/winserver2012-ps/activedirectory/New-ADOrganizationalUnit.md
+23-33Lines changed: 23 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ schema: 2.0.0
8
8
# New-ADOrganizationalUnit
9
9
10
10
## SYNOPSIS
11
+
11
12
Creates a new Active Directory organizational unit.
12
13
13
14
## SYNTAX
@@ -40,8 +41,7 @@ You can override property values from the template by setting cmdlet parameters.
40
41
For more information, see the *Instance* parameter description for this cmdlet.
41
42
42
43
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.
45
45
Then pass these objects through the pipeline to the **New-ADOrganizationalUnit** cmdlet to create the OU objects.
46
46
47
47
## EXAMPLES
@@ -93,20 +93,16 @@ This command creates an OU named Managed in an AD LDS instance.
93
93
### -AuthType
94
94
95
95
Specifies the authentication method to use.
96
-
Possible values for this parameter include:
97
96
98
-
Negotiate or 0
97
+
The acceptable values for this parameter are:
99
98
100
-
Basic or 1
99
+
- Negotiate or 0
100
+
- Basic or 1
101
101
102
102
The default authentication method is Negotiate.
103
103
104
104
A Secure Sockets Layer (SSL) connection is required for the Basic authentication method.
105
105
106
-
The following example shows how to set this parameter to Basic.
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.
285
273
The acceptable values for this parameter are:
286
274
287
275
- A distinguished name
@@ -380,13 +368,15 @@ Note that rules listed first are evaluated first and when a default value can be
380
368
In Active Directory Domain Services (AD DS) environments, a default value for *Path* is set in the following cases:
381
369
382
370
- 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.
384
373
- 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.
385
374
386
375
In AD LDS environments, a default value for *Path* is set in the following cases:
387
376
388
377
- 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.
390
380
- If the target AD LDS instance has a default naming context, the default value of *Path* is set to the default naming context.
391
381
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.
392
382
- If none of the previous cases apply, the *Path* parameter does not take any default value.
0 commit comments