How to list all AD users and display account status Enabled / Disable on 1 list?

Our auditors are asking for a list of AD users listed on a single printout along with their current account status - Enabled or Disable.  We have our current users created in their respective dept OU's.  How can I get all of them on one listing?
helpdesk_wlkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian PiercePhotographerCommented:
kg69Commented:
Load Powershell, Then get and install Quest's ActiveRoles for Management Shell For Active Directory.
Then run Powershell and type the following command.

#For a list of enabled users
get-qaduser -Sizelimit 0 -Enabled

#For a list of Disabled Users
get-qaduser -Sizelimit 0 -Disabled
kg69Commented:
You may also export this to a csv using:

get-qaduser -Sizelimit 0 -Enabled | Export-Csv -path mycsv.csv

The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Joseph DalyCommented:
Use the following at a command prompt.
dsquery user -samid * | dsget user -samid -ln -fn -disabled

The -disabled command displays the status of the accounts. A value yes returned establishes that the account is disabled (for logon); a value of no establishes that the account is enabled (for logon)

You can then pipe this to anything.txt

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
helpdesk_wlkAuthor Commented:
Who whoooo!  That's what I'm talkin about...   Fast, easy, no cost and I got the report to the auditors on time!  You are da man!
Joseph DalyCommented:
one other thing you may need to do is add the -limit 0 switch if you have more than 100 users.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.