top of page
PowerShell | Create New OU
<#
Summary:
Get list of OU paths from file
Loop and create each Sub OU
Author: Scott Head
Date: 02/09/2022
Version: 1.0
#>
$OUS=Get-Content C:\temp\Test.txt
Foreach($OU in $OUS){
New-ADOrganizationalUnit -Name "Assigned Wireless" -Path $OU
}
bottom of page