Scripting Blog

A place to learn about PowerShell and share stories of automation

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

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?- RHHi PS,I was watching the Ninja bear on MSN Video pretty cool actually. I don't think I ...

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

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 start with...

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (03/13/09)

How Can I Get Active Directory Information About Currently Logged-On Users?   Hey, Scripting Guy! I need your help. How do I get currently logged-on users from Active Directory? - HS Hi HS, There is no way to accurately obtain this information, because a logon can come in many different forms. As I sit in my house in Charlotte, North ...

Hey, Scripting Guy! How Can I Remove a Microsoft Update?

Hey, Scripting Guy! You are not going to believe this. We recently deployed a Microsoft Update, and it is not working well for us. I tested it, of course, but for some reason it is not playing well with our systems. I now need to determine what the problem is, but in the meantime, I want to remove the update from all our systems. How can I ...

Hey, Scripting Guy! How Can I Search For, Download, and Install an Update?

Hey, Scripting Guy! Reporting on whether a Windows Update is installed or not is pretty cool. However, what happens when I determine the update has not been applied? Am I supposed to call the user and talk them through connecting to the Microsoft Update site and choosing the appropriate update? That may work for one or two users, but it does...