mirror of
https://github.com/reiyua/AutoOUADCreator.git
synced 2026-01-20 16:47:47 +00:00
Various fixes
This commit is contained in:
parent
f1d4f15ef1
commit
0aa8bef540
1 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ echo $fpath
|
||||||
$fous = Import-Csv $fpath
|
$fous = Import-Csv $fpath
|
||||||
|
|
||||||
#Create OU's within the Active Directory forest by looping throughout each row within the CSV file.
|
#Create OU's within the Active Directory forest by looping throughout each row within the CSV file.
|
||||||
foreach ($row in $ouData) {
|
foreach ($row in $fous) {
|
||||||
# Get the name of the OU from the CSV
|
# Get the name of the OU from the CSV
|
||||||
$ouName = $row.Name
|
$ouName = $row.Name
|
||||||
|
|
||||||
|
|
@ -36,4 +36,6 @@ foreach ($row in $ouData) {
|
||||||
Write-Host "OU '$ouName' already exists, proceeding to next entry."
|
Write-Host "OU '$ouName' already exists, proceeding to next entry."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Write-Host "The specified CSV file does not exist."
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue