Showing tag results for Active Directory

Jan 6, 2005
Post comments count0
Post likes count0

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

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
Jan 5, 2005
Post comments count0
Post likes count0

How Can I Prompt a User to Delete (or Not Delete) a Computer Account?

ScriptingGuy1

Hey, Scripting Guy! How can I delete a computer account from Active Directory, but provide a Yes/No prompt to the user before the account is actually deleted?-- NM Hey, NM. Let’s start by showing you how to delete a computer account from Active Directory. But don’t worry; that won’t take long. In fact, it only takes two lines of code:Set objComp...

Scripting Guy!VBScriptActive Directory
Dec 21, 2004
Post comments count0
Post likes count0

How Can I Tell Whether a Group is a Security Group or a Distribution Group?

ScriptingGuy1

Hey, Scripting Guy! Is there any way to tell whether an Active Directory group is a security group or a distribution group?-- AW Hey, AW. As a matter of fact, there is; this script will tell you what type of group you’re dealing with:Set objGroup = GetObject _ ("LDAP://cn=Finance Managers, ou=Finance, dc=Fabrikam, dc=com") Wscript.Echo objGr...

Scripting Guy!VBScriptActive Directory
Dec 16, 2004
Post comments count0
Post likes count0

How Can I Get a List of All the Domain Controllers in My Domain?

ScriptingGuy1

Hey, Scripting Guy! Is it possible to get a list of all the domain controllers in my domain?-- KT Hey, KT. As a matter of fact, there are at least two ways to get a list of all domain controllers in your domain. The first way is pretty easy, but not guaranteed; depending on how you’ve set up Active Directory, you could miss a few of your domain ...

Scripting Guy!VBScriptActive Directory
Dec 14, 2004
Post comments count0
Post likes count0

How Can I Rename an Active Directory Group?

ScriptingGuy1

Hey, Scripting Guy! How can I rename an Active Directory group?-- CL Hey, CL. This is actually pretty easy; as you’ll see, it only takes two lines of code. It’s not a hard problem, it’s just a little bit tricky. That’s because ADSI (at least when it comes to dealing with Active Directory) does not have a Rename method. Instead, you need to use t...

Scripting Guy!VBScriptActive Directory