remove whatif

This commit is contained in:
Greg Lindsay
2020-04-11 22:10:29 -07:00
parent f15cfac44a
commit 33974d9438

View File

@ -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"
} }
``` ```