Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Set-ADExpiration

$
0
0

Hi,

Im testing my script on how to bulk disable AD users with DateTime properties using the simplest command:

Set-ADAccountExpiration -Identity TestAccount -DateTime"05/01/2019 05:31 PM"

Now as I validate the AccountExpirationDate the user properties in attribute editor, the expiration date and time is reflecting.

I'm just confused on the Account tab, the "End Of" value is showing this: End Of April 30 , 2019

How would I know if the 0531 pm will take effect???


Viewing all articles
Browse latest Browse all 21975