M
M
mkochetkov2015-01-13 16:29:50
Active Directory
mkochetkov, 2015-01-13 16:29:50

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

2 answer(s)
L
ldv, 2015-01-13
@ldvldv

forums.overclockers.co.uk/showthread.php?p=2677784...

M
mkochetkov, 2015-01-15
@mkochetkov

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 question

Ask a Question

731 491 924 answers to any question