Tag Archives: Active Directory

How to list all XP computers

Todays onliner will show all Windows XP computers in a whole Active Directory. Get-QADComputer -SizeLimit 0 -Osname "*xp*" | Select-Object Name, description, path This can be nice If you want to migrate to Windows 7. And if you want to … Continue reading

Posted in PowerShell Blogs | Tagged , , , , | Leave a comment

Get-ClientSiteName

This is another function that I use in Active Directory scripting. I use it when I want to create computer names with the syntax SitenameComputertypeNumbers.   The function can be found here.   Technorati Tags: PowerShell,WMI,Get-ClientSiteName,Active Directory

Posted in PowerShell Blogs | Tagged , , , | Leave a comment

The story continues

Hi, I sat down thinking a little bit today. And then It strikes me that the Lab AD was not finished and that It was not done by best practice. So I will do the structure from this document from … Continue reading

Posted in PowerShell Blogs | Tagged , | 4 Comments

Lab AD with 5000 users

The script is not 100% finished as It is posted now in pieces. I will be adding some check for existing users etc. BUT I did test it last night with 5000 accounts and It did well. Okay, I got … Continue reading

Posted in PowerShell Blogs | Tagged , , | Leave a comment

Create Lab AD – Part 6

How to create and set user information. It’s time to create and set our user information. The information we want for this setup is: First name Last name Display name Description Telephone number E-Mail Web page User principal name SAMAccount … Continue reading

Posted in How-To, PowerShell Blogs | Tagged , , | 4 Comments

Create Lab AD – Part 5 (Changed)

I have been doing some changes to the last part. All of my scripts are under constantly changes. So before I post the next part of the script I want to post this change. I have been doing some changes … Continue reading

Posted in PowerShell Blogs | Tagged , , , | Leave a comment

Create Lab AD – part 5

It’s time to take our information and create the AD. First of all we need to setup the lab structure in our AD. I use my lab active directory named poweradmin.local # Name of the AD $labDomain = [ADSI]"LDAP://dc=poweradmin,dc=local" And … Continue reading

Posted in PowerShell Blogs | Tagged , , , , , | 4 Comments

Create Lab AD – part 4

We have: Real names User Names (samAccountNames) with employee numbers OU names Country Names If you have missed them, look in my older posts about Create Lab AD. In this part we will do: Mail addresses Telephone numbers User Description … Continue reading

Posted in PowerShell Blogs | Tagged , , | 3 Comments

Create Lab AD – part 3

We 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 … Continue reading

Posted in PowerShell Blogs | Tagged , , , | 3 Comments

Create Lab AD (continue)

In my last post I did show you how to take names from the internet to make “real” names. I know that these are Swedish names and I will post2 similar functions with US names later on. Now when we … Continue reading

Posted in PowerShell Blogs | Tagged , , | Leave a comment