Hi,
I am using ADFind to list my AD users. I would like to add the account expirations if possible. Here is the current script that gives me all the users with their names:
adfind -default -f "&(objectcategory=person)(objectclass=user)" samaccountname displayname -csv > c:\users.csv
Is this possible?
Thank you
Active DirectoryPowershell
Last Comment
daskas27
8/22/2022 - Mon
SquigglyMonkey
Do you want to continue using adfind, or powershell?
I ran the last script in the elevated powershell as directed. It returned the names but no expiration dates. The column was there but they were all blank.
SquigglyMonkey
Are the accounts set to "not expire"? Spot check and see if an account actually has an expiration date.
daskas27
ASKER
Ah ha! That is it. Hey, thanks for your help. Would you want to throw in a lookup for expiring passwords?