Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » ADSI   (RSS)

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (8/28/09)

Troubleshooting the Use of a WMI Class Hey, Scripting Guy! When we try to work with the Win32_OperatingSystem WMI class on either Windows Server 2008 or Windows Vista, we run into a problem with our WMI script because of the way we were connecting to

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (7/31/09)

How Can I Migrate AutoText When I Upgrade from One Version of Microsoft Office to Another? Hey, Scripting Guy! We are in the process of converting from Office 2003 to Office 2007. Many people use AutoText and I am trying to automate the process of converting

Hey, Scripting Guy! How Can I Use Windows PowerShell to Determine Whether a Local User Account Exists?

Hey, Scripting Guy! How can I use Windows PowerShell to determine if a specified local user account exists on a computer? -- MM Hey, MM. Have you ever heard the expression “good things come to those who wait”? Well, to tell you the truth, the Scripting

How Can I Determine the OU the Local Computer Belongs To?

Hey, Scripting Guy! In a logon script, which attribute do I use to determine the OU that the local computer belongs to? -- JP Hey, JP. Most people are familiar with Cupid, the Roman god of love. In fact, you’d be hard-pressed to find anyone who doesn’t

How Can I Configure an Active Directory Account So the Password Never Expires?

Hey, Scripting Guy! How can I configure an Active Directory user account so that the account password never expires? -- BB Hey, BB. Before we start we have a question for you : wouldn’t you agree that Catch-22 is one of the four greatest novels ever written?

How Can I Determine Whether a Domain is in Mixed Mode or Native Mode?

Hey, Scripting Guy! How can I determine whether a domain is in mixed mode or native mode? -- WW Hey, WW. When you listen to a Seattle Mariners game on the radio one of the regular features is “Stump the Broadcasters.” The premise to Stump the Broadcasters

How Can I Get the Full Name and Description For My Local User Accounts?

Hey, Scripting Guy! How can I get the full name and description for each of my local user accounts? -- EB Hey, EB. You know, this might be hard to believe, but many people view the Scripting Guys with suspicion. OK, good point; the part that is hard to

How Can I Convert a DN to this Format: finance.fabrikam.com/Users?

Hey, Scripting Guy! How can I convert a DN to this format: finance.fabrikam.com/Users? -- CW Hey, CW. You know, this is a pretty good question; in fact, we should have used it for the Winter Scripting Games . Ah, but, on second thought, maybe it’s a good

How Can I Add a User to a Group, but Only if that User is a Member of the IT Department?

Hey, Scripting Guy! How can I add a user to a group, but only if that user is a member of the IT department? -- JV Hey, JV. You know, this is your lucky day: not only are we going to show you how you can add a specified user to a group (assuming, of course,

How Can I Get the “Grandparent” of an Object in Active Directory?

Hey, Scripting Guy! How can I get the “grandparent” of an object in Active Directory? -- JG Hey, JG. Wait a second: is this “grandparent” thing some sneaky reference to the fact that the Scripting Guys (well, except for Jean, of course) are all starting

How Can I Use Alternate Credentials When Searching Active Directory?

Hey, Scripting Guy! How can I use alternate credentials when searching Active Directory? -- PT Hey, PT. So what’s the big idea here? Devoted readers of this column (both of them) know that we usually love tackling questions where the answer involves searching

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

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

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

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

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

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

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

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.
More Posts Next page »
 
Page view tracker