Random header image... Refresh for more!

Posts Tagged ‘Projects’

Joining a Windows 7 Client to a Domain through PowerShell

Icon Written by Niklas Goude on June 5, 2009 – 6:02 pm

Time to join a Windows 7 client to a domain. Now that the Test Domain is up and running ( Check Previous Posts ), we can start joining clients to the domain.

Since it’s a freshly installed Windows 7 client, we dont have to bother about userprofiles and so on.. we’ll save that for later [...]

Tags: ,

Adding HomeFolder Through PowerShell

Icon Written by Niklas Goude on April 27, 2009 – 10:26 pm

It’s been some time since my last post now, had alot of things to do at work, but now I’m back OnTrack with my blogging.

Last time we checked out how to add group membership through PowerShell, so now we should have a nice test environment in place, based on Star Trek.

In this post, we are [...]

Tags: ,

Adding Group Membership Through PowerShell

Icon Written by Niklas Goude on April 16, 2009 – 7:37 pm

Time to add some members to our groups. Following the steps in the previous posts, we should now have a couple of Users, groups and computers in our test environment. Group Names are based on the Character position in the Star Trek Csv file so now, all we have to do is match up the [...]

Tags: ,

Adding Groups Through PowerShell

Icon Written by Niklas Goude on April 15, 2009 – 8:08 pm

With our Users and Computers in place, we can start adding groups. The groups will be based on the Postition ocf the characters in the StarTrek Csv file. I’ve chosen position since many characters can have the same position.

First, let’s look at all the unique Positions in the Csv file. I’m also using the Series [...]

Tags: ,

Adding Computers through PowerShell

Icon Written by Niklas Goude on April 13, 2009 – 8:35 pm

Now let’s add a couple of computers to our test environment. The Computer Names are based on the Starships from the Csv file. Since there are alot of characters but not that many different ships we need to get a unique list of ships. We also wnat the Series, Location and Registry values.

PS > $CsvFile [...]

Tags: ,

Adding Users through PowerShell

Icon Written by Niklas Goude on April 13, 2009 – 2:23 pm

Now that we have our OU structure in place, we can start adding users.

Since the Users contain alot of information we’ll go ahead and use the whole csv file.

Let’s take a quick look at the first entry in the Csv file:

PS > (Import-Csv StarTrek.csv)[0]

Character : Jean-Luc Picard
Position : Commanding Officer
Rank [...]

Tags: ,

Adding Ou Structure using Powershell

Icon Written by Niklas Goude on April 13, 2009 – 11:03 am

Starting of, we need to set up a couple of OrganizationalUnits in our test environment. Following the structure set up in Part 1.1.0:

Organizational Unit Structure

ou = Series
l = Location
Description = Starship
Child OU: Computers
Child OU: Groups
Child OU: Users

The first step in scripting up a OU structure from based on the StarTrek Csv file is to collect [...]

Tags: ,

Scripting up an Active-Directory Test Environment through PowerShell

Icon Written by Niklas Goude on April 11, 2009 – 10:26 pm

The first step in building up a Test Environment is analyzing the data that we have to work with. In this case, the Star Trek Reference Csv file.

Since the Csv file doesn’t say sAMAccountName or organizationalUnit I’ve to set up a routine for handling this. Based on the information, I’ve set up the following rules:

User [...]

Tags: ,