Create Lab AD – part 3
By Fredrik WallWe have:
- Real names
- User Names (samAccountNames) with employee numbers
In this part we will do stuff for the Lab OUs and we will also pick Country
for the users.
We will not create anything until we have what we need in information.
$labOUs = "Finance","IT","Marketing","Operations","Service","Customer Support"
$mylabOUs = $labOUs | Get-Random
The output will be one of the OUs in the $labOUs.
Finance
IT
Marketing
Need more OU names, just add yours.
Now It’s time to do the same way to make some countries for the users.
$userCountry = "Sweden", "Norway", "Denmark", "Finland"
$myUserCountry = $userCountry | Get-Random
Related posts:

Comments
Create Lab AD, OUs and Countries, http://bit.ly/8sZBN4 #PowerShell #How-To
Create Lab AD, OUs and Countries, http://bit.ly/8sZBN4 #PowerShell #How-To