Getting LastLogon Time from Windows 2012 Server

In case you need to find out, when your users logged in last time to your Windows 2012 Server instance, here comes a handy PoweShell Script: ([ADSI]“WinNT://$env:COMPUTERNAME“).Children | where {$_.SchemaClassName -eq ‚user‘} | ft name,lastlogin This works with NON AD managed accounts, thus local users. Ähnliche Beiträge