- Generate List of Disabled User Accounts
- Posted by latour on February 19th, 2004
Hi All,
is there a tool or command that allows us to generate a
list of user accounts that are locked out.
many thanks
- Posted by Jimmy Andersson [MVP] on February 19th, 2004
You can use the 'Saved Queries' in the ADUC snap-in. Create a new query and
mark the checkbox 'Disabled Accounts'. Or if you'd like you can use Ldp.
Regards,
/Jimmy
--
Jimmy Andersson, Q Advice AB
Microsoft MVP - Active Directory
---------- www.qadvice.com ----------
"latour" <anonymous@discussions.microsoft.com> wrote in message
news:1206b01c3f685$38180f50$a101280a@phx.gbl...
- Posted by Joe Richards [MVP] on February 23rd, 2004
Do you want locked out users or disabled users. There is a difference.
To get all disabled users for the default domain you can use adfind
adfind -bit -default -f
"&(objectcategory=person)(samaccountname=*)(userac countcontrol:AND:=2)" -dn
To find all locked out users for the default domain you can use unlock
unlock . * -view
Unlock and adfind are on the free win32 tools page of www.joeware.net
joe
--
http://www.joeware.net (download joeware)
http://www.cafeshops.com/joewarenet (wear joeware)
"latour" <anonymous@discussions.microsoft.com> wrote in message
news:1206b01c3f685$38180f50$a101280a@phx.gbl...