mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-16 10:53:43 +00:00
remove whatif
This commit is contained in:
@ -151,7 +151,7 @@ $oulist = Import-csv -Path c:\oulist.txt
|
||||
ForEach($entry in $oulist){
|
||||
$ouname = $entry.ouname
|
||||
$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"
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user