Showing results for user accounts - Scripting Blog [archived]

Apr 29, 2005
0
0

How Can I Change the User and Computer Account Description Attributes Each Time a User Logs On?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I change the user and computer account Description attributes each time a user logs on? I’d like the Description to indicate who logged on, and when.-- GG Hey, GG. This is actually a pretty good idea. One question we get asked all the time is this: “How can I get a list of all my computers and who’s logged on to them?...

Scripting Guy!VBScriptActive Directory
Apr 26, 2005
0
0

How Can I Add All the Users from an Existing Active Directory Group to a New Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I add all the users from an existing Active Directory group to a new group?-- TG Hey, TG. So you have a group (we’ll call it Group A) and you want to create an exact replica of that group (we’ll call it Group B). If we were talking about Text File A and Text File B this would be an easy task: all you’d have to do is m...

Scripting Guy!VBScriptActive Directory
Apr 19, 2005
0
0

How Can I Tell Whether a Group Member is a User, a Computer, or Another Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I tell whether the member of a group is a user, a computer, or another group?-- ON Hey, ON. Interesting question and - to tell you the truth - one we’d never really thought about. It’s easy enough to list all the members of a group; for example, here’s a script that reports back all the members of the Finance Managers...

Scripting Guy!VBScriptActive Directory
Mar 23, 2005
0
0

How Can I Set an Active Directory Attribute Value to NULL?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I set an Active Directory property to NULL? I tried setting the value to an empty string (“”) but it didn’t work.-- JJ Hey, JJ. You know, it’s not like the Scripting Guys to get philosophical; one of the Scripting Guys, for example, bases his entire life on this credo: never answer the phone early on Saturday morning....

Scripting Guy!VBScriptActive Directory
Feb 17, 2005
0
0

How Can I Count the Number of Times a User has Logged on to a Computer?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I count the number of times a user has logged on to a computer?-- DE Hey, DE. How can you count the number of times a user has logged on to a computer? Good question and, ultimately, the answer might be: you can’t. But let’s at least explore some possible solutions and see if any of them will help. First of all, let’s...

Scripting Guy!scripting techniquesVBScript