Showing results for local accounts and Windows NT 4.0 accounts - Scripting Blog [archived]

May 23, 2008
0
0

Hey, Scripting Guy! How Can I Use Windows PowerShell to Determine Whether a Local User Account Exists?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I use Windows PowerShell to determine if a specified local user account exists on a computer?-- MM Hey, MM. Have you ever heard the expression “good things come to those who wait”? Well, to tell you the truth, the Scripting Guys have never put much credence in that old saying; after all, the Scripting Guy who writes t...

Scripting Guy!Windows PowerShellother Directory Services
Jun 19, 2007
0
0

How Can I Remove a Specific Set of Users From the Local Administrators Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I delete all the users whose name starts with GER/ad_ from the local Administrators group on a computer?-- ID Hey, ID. It’s a Friday as the Scripting Guy who writes this column writes this column. Usually Fridays are a very sad day for this Scripting Guy: after all, when Friday comes to an end he faces two days of ha...

Scripting Guy!VBScriptother Directory Services
Apr 19, 2007
0
0

How Can I Get a List of All the Local Users Who Have an Expiring Password?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I get a list of all the local users who have an expiring password?-- JM Hey, JM. Thanks for the question. Before we answer it, however, we have a question for you: you don’t by any chance have any spare dice lying around, do you? That’s right, dice, the kind you use when playing board games and craps and stuff like th...

Scripting Guy!VBScriptother Directory Services
Apr 5, 2007
0
0

How Can I Configure an Expiration Date for a Local User Account?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I configure an expiration date for a local user account?-- GW Hey, GW. You know, it’s amazing how quickly things change in the fast-paced world of system administration scripting. For example, in Monday’s column we announced that, as time allowed and whenever possible, the Scripting Guys would include a Windows PowerS...

Scripting Guy!VBScriptother Directory Services
Feb 16, 2007
0
0

How Can I Get the Full Name of a Windows NT 4.0 User When All I Have is Their Logon Name?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine the full name of a user in a Windows NT 4.0 domain when all I have is the user’s logon name?-- NH Hey, NH. In case you’re wondering, after a less-than-auspicious beginning the Scripting Guy who writes this column started to get used to swimming laps every night; in fact, he even started to enjoy the experi...

Scripting Guy!VBScriptother Directory Services