Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Verify that ADAM is Installed?

Hey, Scripting Guy! How can I verify that ADAM is installed?-- CW Hey, CW. Although former President Ronald Reagan is usually given credit for the phrase “Trust but verify,” we’ve always thought that sounded more like the sort of thing a system administrator would say: “Of course I trust you when you say you installed ADAM on that ...

How Can I Determine the Name of the Local Administrators Group?

Hey, Scripting Guy! How can I determine the name of the local Administrators group? This can vary depending on the operating system language; for example, in German the name of the group is Administratoren.-- DS Hey, DS. You know, the first thought that popped into our heads when we read your question was this: just call Scripting Guy Peter...

How Can I List All the Users in an NT 4.0 Domain?

Hey, Scripting Guy! How can I list all the users in an NT 4.0 domain, along with their description and logon script path?-- HH Hey, HH. Ah, yes NT 4.0. Windows NT 4.0 reminds us of dandelions: it doesn’t matter whether you like dandelions or not, there’s simply no way to get rid of them. The same is true of NT 4.0. Regardless of what ...

How Can I Check to See if a User Exists in an NT 4 Domain?

Hey, Scripting Guy! How can I check to see if a user exists in an NT 4 domain?-- PA Hey, PA. You know, if you were to ask us, “How do you back your car out of your driveway?” we’d probably tell you that - after checking all the mirrors - we turn so that we’re facing directly out the back window of the car and then slowly and ...

How Can I Determine if the Local Administrator Account has been Renamed on a Computer?

Hey, Scripting Guy! How can I determine if the local administrator account has been renamed on a computer?-- KF Hey, KF. You know, our first thought was to tell you to use ADSI and try to bind to the local administrator account on the computer; if that failed, that would mean that there was no account named Administrator on that computer. ...