Showing results for ADSI - Scripting Blog [archived]

Jul 14, 2005
Post comments count0
Post likes count0

How Can I Delete an Active Directory Object that Contains Other Objects?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I delete an Active Directory object that contains other objects?-- TS Hey, TS. Ah, yes, the dreaded “objects that contain other objects” dilemma. Is there a way to delete an Active Directory object that contains other objects? Let’s see if we can find one. For those of you new to Active Directory scripting, deleting a...

Scripting Guy!scripting techniquesVBScript
May 17, 2005
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Access Active Directory on a Specific Domain Controller?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I access Active Directory on a specific domain controller?-- SD Hey, SD. You know, one of the cool things about Active Directory is that you usually don’t need to access the directory service on a specific domain controller. Because Active Directory information is replicated between all the domain controllers in ...

Scripting Guy!scripting techniquesVBScript
Apr 28, 2005
Post comments count0
Post likes count0

How Can I Purge All the Print Jobs on a Windows 2000 Print Server?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server?-- KC Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the core tenets of the Scripting Guy Way of Life. That tenet - just a second while we blow the dust off...

Scripting Guy!scripting techniquesVBScript
Mar 10, 2005
Post comments count0
Post likes count0

How Can I Temporarily Add a Group to Another Active Directory Group?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’d like to add an Active Directory group to a second group, but only for an hour; after an hour, I’d like remove that group from the second group. Can I do that with a script?-- JW Hey, JW. Well, this is definitely one of the more interesting questions we’ve received. As far as we know, there’s no way to put a time limit on ...

Scripting Guy!scripting techniquesVBScript
Feb 17, 2005
Post comments count0
Post likes count0

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