mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 22:07:22 +00:00
commit
0092bf4629
@ -151,7 +151,7 @@ $oulist = Import-csv -Path c:\oulist.txt
|
|||||||
ForEach($entry in $oulist){
|
ForEach($entry in $oulist){
|
||||||
$ouname = $entry.ouname
|
$ouname = $entry.ouname
|
||||||
$oupath = $entry.oupath
|
$oupath = $entry.oupath
|
||||||
New-ADOrganizationalUnit -Name $ouname -Path $oupath -WhatIf
|
New-ADOrganizationalUnit -Name $ouname -Path $oupath
|
||||||
Write-Host -ForegroundColor Green "OU $ouname is created in the location $oupath"
|
Write-Host -ForegroundColor Green "OU $ouname is created in the location $oupath"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user