The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Scripting Blog [archived]
Formerly known as the "Hey, Scripting Guy!" blog
Latest posts

Hey, Scripting Guy! How Can Retrieve a List of All My Computer Accounts, Grouped By OU?

Hey, Scripting Guy! How can I get a list of all the computers in my domain, grouping those computers by the OU in which the computer account resides?-- TA Hey, TA. Well, today is Monday, and the Scripting Guy who writes this column is actually glad it’s Monday. Not that he’s all that excited about coming back to work, mind you; it’s just that last week was such an absolutely miserable week that he’s been waiting for a chance to start all over again and see if this week goes any better. So how bad was it last week? Let’s put it this way: on Friday, the day that kicked off the second week of Spring, it snowed al...