Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Script:
- # First we need to declare some variables:
- $StrDCName="TSPAD"
- $StrDCSuffix="local"
- # Next, let's create the basic OU's we will need --
- # Create the Managed Objects ROOT OU
- New-ADOrganizationalUnit -Name "Managed Objects" -Path "dc=$StrDCName,dc=$StrDCSuffix"
- New-ADOrganizationalUnit -Name "Tax Prep" -Path "ou=Managed Objects,dc=$StrDCName,dc=$StrDCSuffix"
- New-ADOrganizationalUnit -Name "Workstations" -Path "ou=Tax Prep,OU=Managed Objects,dc=$StrDCName,dc=$StrDCSuffix"
- Error:
- No error :)
Add Comment
Please, Sign In to add comment