Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Search Active Directory and Produce a Report?

(image) Hey, Scripting Guy! We are in the situation where we are closing a number of remote offices, and I need to quickly be able to generate a list of the computers that are contained in those remote offices. Basically I need to be able to generate a report that tells me the location and the name of the computer assets for each of a series...

Hey, Scripting Guy! How Can I Search Active Directory with Windows PowerShell to Return a List of Missing Groups?

(image) Hey, Scripting Guy! We created some groups that were used by our student interns. The student interns have now returned to college (yeah, it was a while ago). To be honest, I had actually forgotten about these groups, but the other day I was doing some work in Active Directory Users and Computers and I happened across one of these ...

Hey, Scripting Guy! How Can I Search Active Directory from Within Windows PowerShell?

(image) Hey Scripting Guy! It seems that searching Active Directory from within Windows PowerShell is rather easy. But what I do not get is the syntax for the query. In the past I used something that looked more like SQL that the examples you show. What gives?- RH(image) (image) Hi PS,I was watching the Ninja bear on MSN Video pretty cool ...

Hey, Scripting Guy! How Do I Search Active Directory?

(image) Hey, Scripting Guy! I am just getting started using Windows PowerShell, and while it is pretty cool, I really need to be able to search Active Directory. I tried to adapt some old VBScripts I found laying around on the Internet, but it gets pretty long and convoluted. Is there an easier way to do this? What I am interested in, to ...