Windows Remote Computer Log

by , under Powershell

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”.

[code language=”powershell”]
-ComputerName <RemoteComputerName>

-Logname Microsoft-Windows-GroupPolicy/Operational`
|where{$_.Id -eq 9999}|%{