Not a valid Win32 FileTime

Welcome Forums General PowerShell Q&A Not a valid Win32 FileTime

This topic contains 1 reply, has 2 voices, and was last updated by

2 years, 2 months ago.

  • Author
  • #55846

    Points: 71
    Rank: Member

    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

  • #55852

    Points: 0
    Rank: Member

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

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

The topic ‘Not a valid Win32 FileTime’ is closed to new replies.