Tech Support > Operating Systems > Windows 2003 > User Export
User Export
Posted by jim on January 21st, 2004


Is there a way to export just disabled accounts from AD Users and
Computers?? I'd like to put all the disabled accounts in a spreadsheet.

Thanks.


Posted by Matjaz Ladava [MVP] on January 21st, 2004


Sure,

Run

csvde -f yourfile.csv -r
"(&(objectClass=User)(userAccountControl:1.2.840.1 13556.1.4.803:=2))"

More info on userAccountControl flag
http://support.microsoft.com/?id=305144 and searching AD using bitwise
filter
http://support.microsoft.com/?id=269181

--
Regards

Matjaz Ladava, MCSE, MCSA, MCT, MVP
Microsoft MVP - Active Directory
matjaz@ladava.com, matjazl@mvps.org
http://ladava.com

"jim" <jim@NOSPAM.com> wrote in message
news:OhJpo3F4DHA.560@TK2MSFTNGP11.phx.gbl...



Similar Posts