There is one in the WOX Professional ADSI book. I'll look for it and
get back to you. It is out there. It's not hard, but is basically a
call to the user_enum method.
Although the script at the link below doesn't contain the locked out
accounts attribute you should be able to modify it to contain this attribute
as well.
This download will provide ALL user ids from your domain in a csv file
stored at c:\temp,
which is modifiable via the const def'n FileLocation. The script will
determine all parameters
about your AD, modifications to add or remove parameters should be
realtively easy
Attributes include:
a.. User Name
b.. Last Logon Date
c.. Creation Date
d.. Home Folder
e.. Script
f.. Display Name
g.. Password Not Needed
h.. Password Does Not Expire
i.. Expired Password
j.. Account Is Disabled
--
Paul Bergson MCT, MCSE, MCSA, CNE, CNA, CCA
This posting is provided "AS IS" with no warranties, and confers no rights.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.