Setting expiry dates on AD accounts is a common occurrence and is well documented. Setting expiry dates on local accounts is also possible $user = [adsi] "WinNT://./Test1, user" $expirydate = ( Get-Date ) . AddDays ( 2 ) $user . Put ( "AccountExpirationDate"
Read More...
Read the complete post at http://msmvps.com/blogs/richardsiddaway/archive/2011/07/15/setting-local-account-expiry-dates.aspx
Posted
Jul 15 2011, 04:15 AM
by
Richard Siddaway's Blog