Answer the question
In order to leave comments, you need to log in
Active directory. How do I change my account expiration date?
Hello!
There are 1000+ users in AD.
Found today that the user account will expire in about a month.
How to change the flag all at once to the parameter: never?
Windows Server 2008 R2
Answer the question
In order to leave comments, you need to log in
Get-ADUser -Filter * -ResultSetSize $null | Clear-ADAccountExpiration -whatif works, but
Get-ADUser -Filter * -ResultSetSize $null | Clear-ADAccountExpiration says:
Clear-ADAccountExpiration: The operation is not intended for built-in accounts
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question