Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

View Event Logs on Server Core Remotely

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to view Event Viewer logs on a Windows Server Core installation from another computer, using built-in tools like PowerShell, Event Viewer (MMC), and wevtutil. You'll need administrative credentials on the target server and network access to the relevant ports (usually 135 and 445, or WinRM 5985/5986).

What You'll Need

  • A Windows Server Core machine (the target) with remote management enabled.
  • A separate Windows computer (the client) with administrative rights on the target.
  • The target server's IP address or hostname.
  • Administrator credentials for the target server.
  • Network connectivity between the two machines (firewall rules permitting remote event log access).

Step-by-Step

  1. Enable Remote Event Log Management on the target (if not already done). On the Server Core machine, open an elevated Command Prompt or PowerShell and run:
    netsh advfirewall firewall set rule group="Remote Event Log Management" new enable=Yes
    This opens the necessary firewall ports (TCP 135, 445, and dynamic RPC ports). If you prefer a more restricted rule, enable only the "Remote Event Log Management (RPC)" rule.
  2. Ensure the Remote Event Log Service is running. On the target, run:
    sc query EventLog
    If it's not running, start it with:
    sc start EventLog
    This service is usually set to start automatically.
  3. From your client computer, open Event Viewer with the target's name. Press Win + R, type eventvwr.msc, and press Enter. In the console, right-click "Event Viewer (Local)" and select "Connect to another computer...". Enter the target server's name or IP, and click OK. If prompted, provide credentials with administrative rights on the target.
  4. Alternatively, use PowerShell's Get-WinEvent cmdlet. Open PowerShell on the client and run:
    Get-WinEvent -ComputerName SERVER01 -LogName System -MaxEvents 20
    Replace SERVER01 with your target's name or IP. You can also filter by time or event ID, e.g.:
    Get-WinEvent -ComputerName SERVER01 -FilterHashtable @{LogName='Application'; StartTime=(Get-Date).AddDays(-1)}
    This is often faster for scripted or quick checks.
  5. Use wevtutil for a command-line export. On the client, run:
    wevtutil epl System C:\temp\system.evtx /r:SERVER01
    This exports the System log to a file locally. You can then open that .evtx file in Event Viewer on your client.
  6. Enable WinRM (if you prefer PowerShell remoting). On the target, run:
    winrm quickconfig
    Then on the client, use:
    Enter-PSSession -ComputerName SERVER01 -Credential (Get-Credential)
    Once in the session, you can run Get-WinEvent as if you were local.
  7. Verify access with a simple test. On the client, run:
    Test-WSMan -ComputerName SERVER01
    If it returns a response, WinRM is working. For Event Viewer MMC, you'll know it worked when the logs populate.

Common Mistakes

  • Not enabling the right firewall rules. The "Remote Event Log Management" group is essential; enabling only "File and Printer Sharing" won't work.
  • Using the wrong credentials. You must use an account that is a member of the target's Administrators group (or has read access to event logs).
  • Forgetting to start the Event Log service. If it's stopped, remote access fails.
  • Typo in the computer name. Double-check the hostname or IP, and try pinging it first.
  • Using an older PowerShell version that doesn't support -ComputerName on Get-WinEvent. PowerShell 3.0+ is required; Windows 10/11 and Server 2012+ have it.

Tips

  • Use a filter to reduce noise. For example, to see only errors and critical events:
    Get-WinEvent -ComputerName SERVER01 -FilterHashtable @{LogName='System'; Level=1,2}
  • Export to CSV for analysis. Pipe the output:
    Get-WinEvent -ComputerName SERVER01 -LogName Security | Export-Csv C:\temp\security.csv
  • Bookmark the connection in Event Viewer. Right-click the target in the left pane and select "Create Custom View" to save filters for later.
  • Use the -Oldest flag to get events in chronological order (oldest first) when reading a large log.
  • Check the target's time zone. Event times are stored in UTC; Event Viewer displays them in your local time zone, which can be confusing if the servers are in different zones.

Troubleshooting

Error: "Access is denied" when connecting via Event Viewer.

  • Verify you are using an admin account on the target.
  • Check that the Remote Event Log Management firewall rule is enabled.
  • If the target is in a workgroup, you may need to enable LocalAccountTokenFilterPolicy on the target (registry: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System, set LocalAccountTokenFilterPolicy to 1). This allows remote admin access for local accounts.

Error: "The RPC server is unavailable" (0x6BA).

  • This usually means the target is not reachable or the Event Log service is down. Ping the target, check the service, and ensure the firewall rule is active.
  • If the target is behind a NAT or VPN, you may need to allow RPC dynamic ports (49152-65535) through the firewall.

PowerShell Get-WinEvent returns "No events were found that match the specified selection criteria."

  • Check the log name (e.g., System, Application, Security) and that you have permission to read it (Security log requires admin).
  • If you used a filter with StartTime, make sure the time range is correct (e.g., AddDays(-1) starts from yesterday).

WinRM works but Get-WinEvent is slow.

  • This can happen with large logs. Use filters to reduce the data transferred, or export the log to a file and copy it.

Event Viewer shows "The specified network name is no longer available."

  • This often indicates a network drop. Reconnect, and if it persists, check for network stability or firewall interference.

Frequently Asked Questions

Can I view event logs from a Linux machine?

Yes, using tools like PowerShell Core (pwsh) with the Get-WinEvent cmdlet, or using Python libraries like python-evtx. You'll need to authenticate with Windows credentials and have network access to the target's RPC or WinRM ports.

Is it possible to view event logs without admin rights?

No, by default, reading the Security log and some other logs requires administrative privileges. For System and Application logs, a standard user may have limited access, but for full access, you need admin rights.

What is the difference between the Security log and the System log?

The Security log records audit events like logon attempts and object access, while the System log records system-level events like driver failures and service starts. Both are critical for troubleshooting, but the Security log is often more sensitive and requires admin rights to read.

Can I view event logs from a different domain?

Yes, as long as there is a trust relationship or you provide credentials that have access to the target. You may need to use the fully qualified domain name (FQDN) and ensure the firewall allows the traffic.

How do I filter for a specific event ID remotely?

In PowerShell, use the FilterHashtable with the Id key, e.g., Get-WinEvent -ComputerName SERVER01 -FilterHashtable @{LogName='System'; Id=41} for kernel-power events. In Event Viewer, right-click the log and select "Filter Current Log..." to specify event IDs.

What if the target server is not in the same network?

You can use a VPN or set up a WinRM listener over HTTPS (port 5986) with a certificate. Alternatively, you can export the logs locally on the target (using wevtutil epl) and transfer the file to your machine.