Tobias Simetsreiter 2 лет назад
Родитель
Сommit
e7e57cd08f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/Disable-ADAccountGui.ps1

+ 1 - 1
bin/Disable-ADAccountGui.ps1

@@ -24,9 +24,9 @@ $users = Get-ADUser @GetADUserArgs | Where-Object $Where | Sort-Object lastLogon
         dn=$_.distinguishedName
         UserPrincipalName=$_.UserPrincipalName
         mail=$_.mail
+        lastLogonTimestampStr=[datetime]::FromFileTimeUtc($_.lastLogonTimestamp)
         lastLogon=$_.lastLogon
         lastLogonTimestamp=$_.lastLogonTimestamp
-        lastLogonTimestampStr=[datetime]::FromFileTimeUtc($_.lastLogonTimestamp)
     }
 } | Out-GridView -OutputMode Multiple