Windows Remote Computer Log

While managing or configuring windows servers from a management server, a log may be needed for servers being managed. For that purpose, following powershell command might be used. In this example, “RemoteComputerName” logs are displayed and filtered according to “Logname” and “EventID”.

Get-WinEvent `
 -ComputerName <RemoteComputerName>`
 -Logname Microsoft-Windows-GroupPolicy/Operational`
 |where{$_.Id -eq 9999}|%{
   $_.Message
}
Advertisements