Direct Inward Dialing: +1 408 916 9892
Here is a comparison between getting user logon times from remote desktop computers via Windows PowerShell and ADAudit Plus.
$colEvents = Get-WinEvent -ComputerName $ComputerName -LogName "Microsoft-Windows-TerminalServices-LocalSessionManager/Operational" | Where {$_.ID -eq "21"} | Select -Property TimeCreated, Message Write-Host "Login Time,Username" Foreach ($Event in $colEvents) { $EventTimeCreated = $Event.TimeCreated $EventMessage = $Event.Message -split "`n" | Select-Object -Index "2" $EventMessageUser = $EventMessage.Substring(6) Write-Host "$EventTimeCreated,$EventMessageUser" } Export-CSV “C:\Temp\RemoteUserLogonTime.CSV” -NoTypeInformation
The following are the limitations of using Windows PowerShell to generate a list of remote user login time:
ADAudit Plus will swiftly generate reports by scanning all the DCs and these reports can be exported in multiple formats.