• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

Active Directory user accounts

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
3.Description
4.Office


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

Thanks
Rabih
0
Rabihhaj
Asked:
Rabihhaj
  • 4
  • 2
  • 2
  • +1
1 Solution
 
Scott ThomsonCommented:
How many users are we talking about here?

1, 2, 10, 500?
0
 
RabihhajAuthor Commented:
About 800 users , on Windows server 2008 R2 Running Exchange Server 2010
Thanks for your quick response
0
 
Alex Green3rd Line Server SupportCommented:
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

Regards

Alex

EDIT - http://www.systemtools.com/hyena/ and then use exporter pro, you get a 30 day unlimited trial
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
RabihhajAuthor Commented:
Is any better way to do it rather then
with single user.
0
 
chuckmcculloughCommented:
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.
0
 
RabihhajAuthor Commented:
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

Rabih
0
 
RabihhajAuthor Commented:
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.
0
 
Scott ThomsonCommented:
0
 
chuckmcculloughCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now