Author Posts

October 24, 2016 at 7:14 am

Ever seen this error?

Search-ADAccount -AccountInactive -Credential $creds |measure
Search-ADAccount : Not a valid Win32 FileTime.

I get it for -AccountDisabled parameter as well

October 24, 2016 at 7:33 am

some time ago I see PwdLastSet as -1 (7fffff..)

[datetime]::FromFileTime(-1) give this error