PowerShell One-Liners – Take my script, please!

Hail Henny Youngman, the king of one-liners! One of the great things about PowerShell is the ability to create simple, powerful one-line scripts. This is not to say that we need to crunch everything down to single line just to be cute, but we have the ability to build effective processes by making use of the … Read more

PowerShell – Move Windows 7 Computers into OU structure by IP address (Active Directory)

Hi Folks! I’f you’ve come to this article because of a permalink then I’ve got some news for you! The article has been selected to be posted on the Microsoft Scripting Guys blog as a guest article (insert applause). You can now find the article in 2 parts here: Use PowerShell to Move Computers Based … Read more

PowerShell – Listing aged out computer accounts in Active Directory

Do you remember having to use OldCmp.exe  from JoeWare (great tools by the way) to capture a a list of computer accounts which have not been attached to your Active Directory for a period of time. Luckily with PowerShell and Quest ActiveRoles you can do this with a simple two line script. Here’s the code: … Read more

PowerShell – Get serial numbers for computers in Active Directory

There are a lot of posts about pulling data from a file to do actions against computers/users. While this is valuable, I prefer to do dynamic capturing of computer and user objects directly from my Active Directory. This is a simple script which will capture a list of computers from Active Directory and subsequently pull … Read more