Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » users   (RSS)

Hey, Scripting Guy! How Can I Add a User to Multiple Groups?

Hey Scripting Guy! It seems that I can never find what I need anymore. I am looking for a Windows PowerShell script that will add a user to multiple groups. The user and the group are in the same organizational unit, and I do not want to have to run the

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

How Can I Query a Registry Value Remotely? I have a simple question: What is the equivalent to querying the MicrosoftIE_Summary WMI class in Windows Vista? I just need to get the version of Internet Explorer. One small problem though: The Windows PowerShell

Hey, Scripting Guy! How Can I Identify All Local Users, Groups, and Services on a Local Computer?

Hey, Scripting Guy! I have several computers that seem to be identical, but they act like they are different. I mean, the same person set the computers up, so I imagine he followed the checklist and the machines should therefore be the same. But something

Hey, Scripting Guy! How Can I Create the Same User Account and Password on Multiple Computers?

Hey, Scripting Guy! We have an application that runs on our local computers. It is a rather old application, and of course it is mission critical. Because this application is not Active Directory integrated, it means that I need to create a local user

Hey, Scripting Guy! How Can I Create Users from a CSV File?

Hey, Scripting Guy! In your last article, you showed how to create random passwords for users and how to write that password out to a CSV file. You said if anyone asked that you would show how to use that CSV file and create a user from it. Well, here

Hey, Scripting Guy! How Can I Standardize the Logon Name for All My Users?

Hey, Scripting Guy! My company would like me to change our Active Directory logon names from this format – kmyer – to this format: Ken.Myer . Is there a way I can script all these changes? -- DO Hey, DO. You know, sometimes the Scripting Guy who writes

Hey, Scripting Guy! How Can I Modify the Email Addresses of All the Users in an OU and Its SubOUs?

Hey, Scripting Guy! I need to get a list of all the users in an OU and its subOUs, then change their email addresses so those addresses only user lowercase letters. How can I do that? -- TB Hey, TB. You know, we had to think twice before going ahead and

How Can I Remove a Specific Set of Users From the Local Administrators Group?

Hey, Scripting Guy! How can I delete all the users whose name starts with GER/ad_ from the local Administrators group on a computer? -- ID Hey, ID. It’s a Friday as the Scripting Guy who writes this column writes this column. Usually Fridays are a very
Posted by ScriptingGuy | 0 Comments
Filed under: ,

How Can I Force All the Users in an OU to Change Their Password the Next Time They Log On?

Hey, Scripting Guy! How can I write a script that will force all the users in an OU to change their password the next time they log on? -- TH Hey, TH. You know, you picked a bad day to ask a question; the Scripting Guy who writes this column is in an
Posted by ScriptingGuy | 0 Comments
Filed under: , ,

How Can I Copy My Users’ Phone Number Attribute to Their Description Attribute?

Hey, Scripting Guy! How can I copy a user’s phone number to his or her description for all the users in Active Directory? -- DL Hey, DL. You know, the Scripting Guy who writes this column considers today’s column to be his all-time favorite. Why? Because
Posted by ScriptingGuy | 0 Comments

How Can I Delete All the Users in an Active Directory Group?

Hey, Scripting Guy! How can I delete all the users in an Active Directory group? -- AA Hey, AA. You know, that’s something we Scripting Guys never thought about: a script that could eliminate all the users in a particular group. The only problem we have

How Can I Get a List of All the Users Who Have an Alternate Recipient?

Hey, Scripting Guy! How can I get a list of all the users who have an alternate recipient (altRecipient)? -- SA Hey, SA. You know, one of the great things about being a Scripting Guy is that we don’t ever have to know what we’re talking about; all we

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 Prevent a Local User From Changing His or Her Password?

Hey, Scripting Guy! How can I configure a local user account so that the user can’t change his or her password? -- DC Hey, DC. The secret here lies in the mysterious userFlags attribute. We’ll show you how to set a user account so that the user can’t
 
Page view tracker