Showing results for user accounts - Scripting Blog [archived]

Jan 6, 2005
0
0

How Can I Tell On What Date an Active Directory User Account Was Created?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there any way to tell the date that an Active Directory user account was created?-- DD Hey, DD. And thanks: between the work that piled up over the holidays, the upcoming Scripting Week 2, and a nasty flu bug that’s going around, it’s nice to have a question that can be answered with just two lines of code. That’s right: t...

Scripting Guy!VBScriptActive Directory
Dec 3, 2004
0
0

How Can I Determine the SID for a User Account?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine the SID for a user account?-- MD Hey, MD. For those of you whose eyes glaze over any time they see an acronym (not that we blame you), SID is short for Security Identifier. A SID is a unique ID string (e.g., S-1-5-21-1454471165-1004336348-1606980848-5555) that is assigned to each account created in a domai...

Scripting Guy!VBScriptActive Directory
Nov 19, 2004
0
0

How Can I Put New Users in the Same OU as the Person Creating Their Accounts?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We use a script to create user accounts. How can I modify this script so that it will place the new user in the same OU as the person running the script?-- CB Hey, CB. Interesting question. We’re assuming that you’ve delegated control of Active Directory. User A, for example, has the right to create users in the Finance OU, b...

Scripting Guy!scripting techniquesVBScript
Oct 15, 2004
0
0

How Can I Change a User’s Password?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I change a user’s password using a script?-- GO Hey, GO. You didn’t indicate whether you wanted to change the password for a local user or for an Active Directory user. But that’s OK: the processes are so similar we’ll go ahead and show you how to do both. It’s like getting two Hey, Scripting Guy! columns for the pric...

Scripting Guy!VBScriptActive Directory
Sep 17, 2004
0
0

How Do I Bind to a User Account in a Sub-OU?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How do I bind to a user account when the user is in a sub-OU? Code like this doesn’t work: LDAP://CN=Ken Meyer, OU=NA\Human Resources, DC=fabrikam, dc=com.-- RD Hey, RD. The past few days we’ve done some lengthy answers to questions, so we decided to be a little lazy today (hey, it is Friday!) and take an easy one. In your Acti...

Scripting Guy!VBScriptActive Directory