posted 17/12/09

Create Lab AD – part 3

By Fredrik Wall

We have:

  1. Real names
  2. 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:

  1. Create Lab AD – part 4
  2. Create Lab AD – part 5
  3. Create Lab AD (continue)
  4. Create Lab AD Functions (Updated)
  5. Create Lab AD – Part 5 (Changed)


Comments
Fredrik Wall WordPress v1.1.3 December 17th, 2009 (7:18 am)
comment

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

Fredrik Wall WordPress v1.2.7 December 17th, 2009 (8:18 am)
comment

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

Add Comment

Name (Required)

E-mail (Required)

Website

Comment (Required)