Active Directory user accounts

Posted on 2014-04-01
Last Modified: 2014-04-15
Hi Guys,

I need help , My manager send me a list of users and he want me to provide him with the following:

I am not to good in Power shell but i prefer to send me some simple cript to use in PS .

1. which OU are listed in
2. Disable or enable

I do have all the user in CSV format ready to import it with your script

Question by:Rabihhaj
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
LVL 10

Expert Comment

by:Scott Thomson
ID: 39968737
How many users are we talking about here?

1, 2, 10, 500?

Author Comment

ID: 39968746
About 800 users , on Windows server 2008 R2 Running Exchange Server 2010
Thanks for your quick response
LVL 10

Expert Comment

by:Alex Green
ID: 39968829
launch powershell

run import-module ActiveDirectory

get-ADUser -filter *

that will pull every single user with details.

However, that being said, your easier option is to get Hyena and then use that to generate a nice CSV file. I use it every few weeks to do the same thing :D



EDIT - and then use exporter pro, you get a 30 day unlimited trial
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.


Author Comment

ID: 39968848
Is any better way to do it rather then
with single user.

Accepted Solution

chuckmccullough earned 500 total points
ID: 39970583
alexgreen312, thanks for mentioning Hyena! Hyena would be a lot easier for this type of reporting. You can modify a user query with the fields you want and report all users, or since you have a list of users you could create a temporary group and paste in your list of users. The Add button on the Members tab allows you to paste in a list of users, and then from there you can view the members of that group to see the information you want.

If you want to look at Hyena, and need steps to do this just let us know and we'll get you going.

Author Comment

ID: 39970942
Hi all..

I have to change my question now.

I only need to find out if the 500 users are enable or disabled, and when is the expired date.

Is that possible to do that thank you in advance


Author Comment

ID: 39971228
Hi chuckmccullough,

Could you send some link to Hyena tools. I would like to have a look if we can install this on our server.
LVL 10

Expert Comment

by:Scott Thomson
ID: 39971238

Expert Comment

ID: 39972183
On the page Scott linked to above click the Free Trial button and you can download from there. Hyena can be installed on any Windows-based system, so you can install it on your workstation and manage your domain from there. It can also be installed on a server, but doesn't have to be.

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
how to add IIS SMTP to handle application/Scanner relays into office 365.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question