active directory windows server 2003

is there a way in power shell to and find out all the disabled users in a domain?
sirichaiphumiratAsked:
Who is Participating?
 
klittlejohn1Commented:
I use Dumpsec which works pretty good.  Here is the link in case you want to take a look.  It allows you to find disabled accounts and other info as well like last logon, groups, etc.

http://www.systemtools.com/somarsoft/index.html

0
 
g000seCommented:
Hi,

You could use ldap to find disable users.

Here is a link for windows powershell to find disabled users- http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/16/using-powershell-to-find-all-disabled-users-in-active-directory.aspx

g000se
0
 
GovvyCommented:
Use the free Quest Active Directory PS Modiule and run:

Get-QADUser -objectAttributes @{userAccountControl=546}
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.

All Courses

From novice to tech pro — start learning today.