Showing results for ADSI - Scripting Blog [archived]

Nov 3, 2005
0
0

How Can I Determine the ADsPath for the Logged-On User?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! In my HTA, how can I determine the ADsPath for the logged-on user?-- AC Hey, AC. You know, when you work at Microsoft people automatically assume that you spend your days in an ivory tower, totally removed from the day-to-day activities and needs of system administrators. To be honest, that isn’t true: our tower is really mor...

Scripting Guy!scripting techniquesVBScript
Oct 28, 2005
0
0

How Can I Determine an Attribute’s Data Type and Whether It is Single- or Multi-Valued?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I query the Active Directory schema for an attribute’s data type and whether it is single-valued or multi-valued?-- MS Hey, MS. You know, this turned out to be one of those questions that drive us crazy: after all, it seemed like it would be so easy to answer. As you’ve probably already figured out, however, it turned...

Scripting Guy!scripting techniquesVBScript
Oct 19, 2005
0
0

Hey, Scripting Guy! How Can I Configure the Hide From Exchange Address Lists Property for All the Contacts in a Domain?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I configure the Hide From Exchange Address Lists property for all the contacts in a domain?-- MM Hey, MM. You know what the say: you can run, but you can’t hide (especially from Microsoft Exchange!). But what they forgot to add is that you can hide, as long as you’ve set the value of the MSExchHideFromAddressLists att...

Scripting Guy!scripting techniquesVBScript
Oct 14, 2005
0
0

How Can I Add a User to a Group if That User Belongs to Two Other Groups?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I check to see if a user is in both group A and group B and, if so, add that user to Group C?-- DH Hey, DH. Good heavens, how are we supposed to know that?!? Sheesh. Sorry; we just always wanted to say that. Now that we have that out of our system, here’s a sample script that checks to see if Ken Myer belongs to both ...

Scripting Guy!VBScriptActive Directory
Aug 22, 2005
0
0

How Can I Determine Which Attributes are Replicated to the Global Catalog?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I find out which attributes are replicated to the global catalog?-- AS Hey, AS. When people envision the future, they often foresee enormous skyscrapers, buildings so large that you might live your whole life without ever leaving them: you’ll live there, work there, go to school there, buy your groceries there, etc. (...

Scripting Guy!scripting techniquesVBScript