Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » searching Active Directory   (RSS)

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

In this post : Using the Active Directory DirectoryEntry Class How Can I Run a Script Whenever a New USB Drive Is Attached to a Computer? Making a Specific Windows PowerShell 2.0 Script Work with Windows PowerShell 1.0 Can I Use VBScript to Distinguish

Hey, Scripting Guy! How Can I Generate a List of All Groups of Which a User Is a Member?

Hey, Scripting Guy! I need to get a list of all the groups of which a user is a member. I do not mean the groups of which the user is a direct member, but I need to know all of the groups. You know that groups can be members of other groups, and other

Hey, Scripting Guy! Can I Get a List of All Users in a Domain Without Their Manager Attribute Populated?

Hey, Scripting Guy! I need to get a list of all the users that have set their manager in Active Directory. We have this Web application that allows users to populate information such as their phone number, their office location, and their manager. We

Hey, Scripting Guy! How Can I Get a List of Domain Controllers in My Domain? (Part 2)

Hey, Scripting Guy! I need to obtain a listing of the domain controllers in my domain. I am thinking about using Windows PowerShell to query the Domain Controllers Organizational Unit, but I am not sure this is the right approach. Will this work? If it

Hey, Scripting Guy! How Can I Get a List of Domain Controllers in My Domain? (Part 1)

Hey, Scripting Guy! I hope you do not think I am clueless, but I need to obtain a list of all the domain controllers in my domain. Can you help me out by writing a Windows PowerShell script to list all of the domain controllers in my domain? -- KH Hello

Hey, Scripting Guy! How Can I Search Active Directory and Produce a Report?

Hey, Scripting Guy! We are in the situation where we are closing a number of remote offices, and I need to quickly be able to generate a list of the computers that are contained in those remote offices. Basically I need to be able to generate a report

Hey, Scripting Guy! How Can I Search Active Directory with Windows PowerShell to Return a List of Missing Groups?

Hey, Scripting Guy! We created some groups that were used by our student interns. The student interns have now returned to college (yeah, it was a while ago). To be honest, I had actually forgotten about these groups, but the other day I was doing some

Hey, Scripting Guy! How Can I Search Active Directory from Within Windows PowerShell?

Hey Scripting Guy! It seems that searching Active Directory from within Windows PowerShell is rather easy. But what I do not get is the syntax for the query. In the past I used something that looked more like SQL that the examples you show. What gives?

Hey, Scripting Guy! How Do I Search Active Directory?

Hey, Scripting Guy! I am just getting started using Windows PowerShell, and while it is pretty cool, I really need to be able to search Active Directory. I tried to adapt some old VBScripts I found laying around on the Internet, but it gets pretty long

Hey, Scripting Guy! How Can I Determine the Home Directory For All the Disabled User Accounts in Active Directory?

Hey, Scripting Guy! How can I determine the home directory for all the disabled user accounts in Active Directory? -- DB Hey, DB. You know, it’s not like the Scripting Guy who writes this column is addicted to TV or anything, but last night he was watching

How Can I Retrieve Information Required by the Sarbanes-Oxley Act?

Hey, Scripting Guy! As part of our Sarbanes-Oxley requirements I need to get a list of all my Active Directory users, along with the date that their account was created and the last time their password was changed. How can I get a list like that? -- DB

How Can I Move a Computer From an Unknown OU into a Known OU?

Hey, Scripting Guy! How can I move a computer from an unknown OU into a known OU? -- DB Hey, DB. You know, a lot of people take a look at system administration scripting and think, “Well, it might be useful, but it sounds kind of boring.” After all, clearing

How Can I Use a Script to Create a Sequential Series of User Accounts?

Hey, Scripting Guy! For purposes of testing, I often need to create multiple user accounts like this: pgeorge01, pgeorge02, etc. How can I write a script that automatically creates the next account in the sequence; that is, pgeorge03? -- RG Hey, RG. You

How Can I List All the Sub-OUs in an OU?

Hey, Scripting Guy! How can I list all the sub-OUs in an OU? That includes any OUs that might be in those sub-OUs. -- JE Hey, JE. If you’re the least bit familiar with this column then you know that we Scripting Guys love to answer questions that involve

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