title: exception calling "Parse" with 1 argument: Input string was not in a correct format
body: <p>I have a script that works properly when run as an administrator but gives a Parse error when run as a normal user. Any Ideas?;<img src="https://i.stack.imgur.com/bQXk5.jpg" alt="enter image description here"></p>
  
  <p><strong>SCRIPT</strong></p>
  
  <pre><code>`NeverExpires = 9223372036854775807;
  $ExpireMin = (Get-Date).AddDays(4);
  $ExpireMax = (Get-Date).AddDays(9);
  
  $Userlist = Get-ADUser -Filter * -Properties name, samaccountname, accountexpirationdate, enabled, distinguishedname, accountExpires | Where-object {($_.DistinguishedName -notlike "*OU=Terminated,OU=Users,OU=Home Office,DC=Domain,DC=com")} |
  Where-Object {$_.accountExpires -ne $NeverExpires  `
  -and [datetime]::FromFileTime([int64]::Parse($_.accountExpires)) -lt $ExpireMax `
  -and [datetime]::FromFileTime([int64]::Parse($_.accountExpires)) -gt $ExpireMin }
  
  $Userlist |  select name, samaccountname, accountexpirationdate, enabled, distinguishedname | export-csv $ReportName -notypeinformation
  
  Send-MailMessage -To $To -From $From -Subject $Subject -Body $Body -SMTPServer $SMTPServer -Attachments $ReportName 
  
  Get-ADUser -Filter * -Properties accountExpires | 
  Where-Object {$_.accountExpires -ne $NeverExpires  `
  -and [datetime]::FromFileTime([int64]::Parse($_.accountExpires)) -lt $ExpireMax `
  -and [datetime]::FromFileTime([int64]::Parse($_.accountExpires)) -gt $ExpireMin } | ForEach { 
        $account = $_ 
        $manager = Get-ADUser -Identity $account -Properties EmailAddress,Manager | %{(Get-AdUser $_.Manager -Properties EmailAddress).EmailAddress}`
  </code></pre>