---
title: Prerequisites for Nodinite Windows Server Monitoring Agent
description: Review all prerequisites for installing and running the Nodinite Windows Server Monitoring Agent. Ensure robust, secure, and scalable monitoring with correct software, user rights, and firewall settings for on-premises and cloud environments.
---

# <i class="fal fa-square-plus" aria-hidden="true"></i> Prerequisites for the Nodinite Windows Server Monitoring Agent  

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Windows Server Monitoring Agent][] delivers robust, secure, and scalable monitoring for your entire Windows Server landscape. This page details all prerequisites to ensure a seamless installation, optimal connectivity, and compliance with best practices.  

* ✅ Secure and scalable monitoring for on-premises and cloud environments  
* ✅ All software, user rights, and firewall requirements in one place  
* ✅ Expert guidance for PowerShell, WinRM, and Service Bus setup  
* ✅ Avoid common pitfalls with clear troubleshooting and FAQ links  

This page outlines the prerequisites for installing and running the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Windows Server Monitoring Agent][]. In <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7, the agent is hosted as an [IIS][IIS Overview] web site, which is the recommended model for enabling HTTPS/TLS transport.

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>For secure production deployments, prefer TLS-protected communication wherever possible: host the agent over HTTPS when it runs remotely in IIS, and use PowerShell Remoting over HTTPS (WinRM on port 5986) instead of plain HTTP. This reduces exposure when PowerShell monitoring or remote actions are used.</p><ul>
<li><a href="https://docs.nodinite.com/install-and-update/troubleshooting/iis/how-to-perform-hardening-on-your-nodinite-installation/">Hardening your Nodinite installation</a> - Best practices for securing your environment, including the Windows Server Monitoring Agent.</li>
</ul></div>
</aside>

<div class="mermaid">  
graph LR  
    subgraph "Nodinite Instance"  
        roNI(fal:fa-monitor-waveform Windows Server Monitoring agent)  
    end  
    subgraph "Windows Servers"  
        roWS(fab:fa-windows Windows Server)  
        roNI --- roWS  
        roWS -.-> | Custom PowerShell scripts | roAzureAPI(fab:fa-windows Remote Windows Server)  
    end  
    subgraph "Any pingable device/server"  
        roDevice(fal:fa-router Device)  
        roNI -.- | Ping | roDevice  
    end  
</div>  

*This diagram shows how the agent connects to Windows Servers and pingable devices, supporting both local and remote PowerShell scripts.*  

You can install this agent on-premises using TCP/IP for local network access, or in the cloud/off-site using [Service Bus Relaying][]. For more details, see the external link ['Azure Relay FAQs'][MicrosoftServiceBusRelayingLink]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>.  
>We recommend keeping this agent close to <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Core Services][]. This documentation covers local network setup (usually on the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> application server)  

|Verified|Topic|  
|:---:|---|  
|<i class="fal fa-square" aria-hidden="true"></i>|<i class="fal fa-box-check" aria-hidden="true"></i> [Software Requirements](#fa-box-check-software-requirements)|  
|<i class="fal fa-square" aria-hidden="true"></i>|<i class="fab fa-windows" aria-hidden="true"></i> [What Windows User Rights does the Windows Server Monitoring agent require?](#what-windows-user-rights)|  
|<i class="fal fa-square" aria-hidden="true"></i>|<i class="fal fa-shield-check" aria-hidden="true"></i> [What Firewall settings do the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Windows Server Monitoring agent require?](#fa-shield-check-what-firewall-settings-do-the-nodinite-windows-server-monitoring-agent-require)|  
|<i class="fal fa-square" aria-hidden="true"></i>|<i class="fal fa-shield-check" aria-hidden="true"></i> [WinRM](#winrm) must be enabled for remote [PowerShell][]. Some IIS Monitoring features rely on remote PowerShell|  

## <i class="fal fa-box-check" aria-hidden="true"></i> Software Requirements  

The [Windows Server Monitoring Agent][] is a Windows Service and is usually installed on the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> application server.  

|Product||  
|---|---|  
|<i class="fab fa-windows" aria-hidden="true"></i> Windows Server|Windows 2025<br>Windows 2022<br>Windows 2019<br>Windows 2016<br>Windows 2012 R2*<br>Windows 2012*|  
|<i class="fal fa-file-prescription" aria-hidden="true"></i> .NET Framework|.NET Framework 4.8 or later <sup><span class="nodinite-new-badge">New 6.0</span></sup><br>Our recommendation is .NET Framework **4.8.1** or later|  
|<i class="fal fa-rectangle-terminal" aria-hidden="true"></i> Powershell WMF 5.1 or later|If you are using Windows 2012/2012 R2, you must install [WMF 5.1](https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/wmf-overview)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> or later to make use of the PowerShell Monitoring feature. Also, some IIS Monitoring features rely on PowerShell.|  
|<i class="fal fa-globe" aria-hidden="true"></i> IIS Monitoring (Agent Host)|Remote PowerShell must be enabled for some IIS Monitoring features; follow the [WinRM](#winrm) instructions.|  
|<i class="fal fa-globe" aria-hidden="true"></i> IIS Monitoring (Target Host)|IIS Management Console<br>IIS 6 Metabase Compatibility<br>IIS 6 Management Compatibility<br>IIS 6 WMI Compatibility<br>Management Service (Please review the additional heading)<br>[Troubleshooting IIS Monitoring on Windows Server 2012 R2 and earlier][Troubleshooting - IIS - 2012]<br>Target server must have **Web Scripting Tools** installed. Use the following **PowerShell** command to install the feature: '`Install-WindowsFeature Web-Scripting-Tools`'<br>Remote PowerShell must be enabled for some IIS Monitoring features; follow the [WinRM](#winrm) instructions|  

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>If you are exposing the agent as an IIS web site in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7, configure HTTPS/TLS for the site and avoid plain HTTP. Treat PowerShell remoting the same way: use HTTPS (5986) when you can, and restrict firewall rules to the servers that truly need access.</p></div>
</aside>

>Versions **6.2** and later do no longer require the Microsoft.Web.Administration assembly on Agent Host.  
>Versions **6.0** and later make use of the .NET Framework 4.8 or later.  
>Versions **5.4** and later make use of the .NET Framework 4.6.2 or later.  
>Versions prior to **5.4** make use of the .NET Framework 4.5.2 or later.  

**Remote** Windows Servers with IIS to monitor must have these Windows features installed.  
![IIS 6 Features][1]  
*IIS 6 roles and features required for remote monitoring.*  

**If you have three servers with IIS to monitor, you must install this feature on three servers**  
If you see entries in the Windows event log like `while activating CLSID {2B72133B-3F5B-4602-8952-803546CE3344}`, please review the prereqs, restart, and make sure the following settings have been applied: [Setting DCOM Security to Allow a User to Access a Computer Remotely](https://learn.microsoft.com/en-us/windows/win32/wmisdk/securing-a-remote-wmi-connection#setting-dcom-security-to-allow-a-user-to-access-a-computer-remotely)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>  

### Management Service  

If the IIS is a remote server to the [Monitoring Agent][Monitoring Agents]; You must also enable remote connections and make sure the WMSVC service is operational. Please review the [Remote Administration for IIS Manager](https://learn.microsoft.com/en-us/iis/manage/remote-administration/remote-administration-for-iis-manager)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> for additional details.  

1. [Enable remote connections](#enable-remote-connections)  
2. Make sure to [auto-start the VMSVC service](#set-wmsvc-to-start-automatically)  
![Management Service][2]  
*Ensure to allow remote connections and set the '**WMSVC**' service to start automatically.*  

#### Enable remote connections  

1. In the IIS MMC, click on the node, then, on **Management Service**.  
2. Check the **Enable remote connections** checkbox.  

>Click the **Apply** to persist the changes.  

![Apply changes][3]  
*Click **Apply** to persist the changes.*  

#### Set WMSVC to start automatically  

The **WMSVC** service installs with Startup Type set to **Manual**, which means that the service has to be manually restarted each time the server reboots or if HTTP.sys is stopped (WMSVC depends on HTTP.sys). Set the Startup Type to **Automatic** if you want WMSVC to start on system boot. Do this in the Services MMC console, or using this command line in an administrative command prompt:  

```cmd  
sc.exe config WMSVC start= auto  
```  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>The secure deployment model for PowerShell monitoring is to pair least-privilege accounts with TLS-protected transport. That means HTTPS for remote IIS hosting and WinRM over HTTPS for remote PowerShell whenever your environment allows it.</p></div>
</aside>

### <i class="fal fa-arrows-alt" aria-hidden="true"></i> Supported Versions  

Windows Server is ever-evolving, and Microsoft sometimes adds new functionality and/or deprecates older SDKs, methods and adjust policies. For <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, this means you need to update <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> and our [Windows Server Monitoring Agent][] from time to time.  

><i class="fal fa-file-alt" aria-hidden="true"></i> Make sure to subscribe to our [Release Notes][].  

<a id="what-windows-user-rights"></a>

<h2 id="what-windows-user-rights-does-the-windows-server-monitoring-agent-require"><i class="fab fa-windows" aria-hidden="true"></i> What Windows User Rights does the Windows Server Monitoring agent require?</h2>

In <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7, the Windows Server Monitoring Agent is hosted as an **IIS web site** on a Windows Server (physical or virtual machine), typically on the same server as the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> application. That hosting model allows you to use TLS for the agent endpoint.

### Service Account Requirements

You must configure the IIS application pool identity used by the monitoring agent web site. That identity needs specific permissions:

#### 1. Account Type

Choose one of the following account types:

* <i class="fal fa-user-tie" aria-hidden="true"></i> **Domain account** (recommended) - A user account from your Active Directory domain (e.g., `DOMAIN\NodiniteAgent`)
* <i class="fal fa-user" aria-hidden="true"></i> **Local named account** - A local user account on the server where the agent is installed (e.g., `.\NodiniteAgent`)

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Use a domain account if you plan to monitor multiple servers across your network. This simplifies permission management.</p></div>
</aside>

#### 2. Required Permissions

The IIS identity needs two sets of permissions:

**a) On the Agent Server (where the IIS web site is hosted):**

* <i class="fal fa-right-to-bracket" aria-hidden="true"></i> **Log on as a service** right - Only relevant to older service-hosted deployments, not the recommended v7 IIS-hosted model. Follow the '[How to set logon as a Windows service right][How to set Logon as a Service right]' guide only if you are maintaining a legacy deployment.

**b) On all Servers to monitor (Agent host and remote targets):**

* <i class="fal fa-user-shield" aria-hidden="true"></i> **Local Administrator** membership - The IIS identity must be a member of the local Administrators group on every Windows Server the agent will monitor. This includes the Agent Server when the agent also monitors its host.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>Critical requirement</strong>: To monitor Windows Servers (local or remote), the IIS identity must have <strong>local administrator rights</strong> on each server being monitored. Without this, the agent cannot access WMI, performance counters, remote PowerShell, IIS management or other management operations required for full monitoring.</p></div>
</aside>

#### 3. UAC Remote Token Filtering (Remote Servers Only)

When monitoring **remote** Windows Servers, User Access Control (UAC) may filter administrative tokens, causing "Access Denied" errors even when the service account is in the local Administrators group.

**Symptoms:**

* Error: `Access is denied. (HRESULT: 0x80070005 E_ACCESSDENIED)`
* Error: `System.UnauthorizedAccessException: Access is denied`
* Service account **is** in Administrators group but monitoring fails

**Solution - Use Domain Administrator Account (Recommended):**

Use an IIS identity that is a member of **Domain Admins** or **Enterprise Admins** if your security model allows it. Domain admin accounts bypass UAC token filtering on domain-joined servers.

**Alternative Solution - Disable UAC Token Filtering:**

If you cannot use a domain admin account, disable UAC token filtering on each **remote server** being monitored:

```powershell
# Run on the remote server being monitored
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" `
    -Name "LocalAccountTokenFilterPolicy" -Value 1 -PropertyType DWord -Force
```

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>Disabling UAC filtering reduces security. Only use in controlled environments when domain admin accounts are not feasible. See <a href="https://docs.nodinite.com/logging-and-monitoring/windows-server/troubleshooting/how-to-monitor-remote-scheduled-tasks/">How to Monitor Remote Scheduled Tasks</a> for detailed troubleshooting.</p></div>
</aside>

### Example Configuration

If you're using domain account `DOMAIN\NodiniteAgent` to monitor 5 Windows Servers:

1. ✅ Grant "Log on as a service" right on the **Agent Server**
2. ✅ Add `DOMAIN\NodiniteAgent` to the local Administrators group on **all 5 remote servers**
3. ✅ Configure the Windows Server Monitoring Agent service to run as `DOMAIN\NodiniteAgent`

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p><strong>Security consideration</strong>: While local administrator rights are required for full monitoring capabilities (WMI, performance counters, IIS management), consider your organization's security policies. Some enterprises use dedicated monitoring accounts with restricted permissions or implement least-privilege access patterns. Consult your security team if standard administrator rights are not permitted.</p></div>
</aside>

## <i class="fal fa-shield-check" aria-hidden="true"></i> What Firewall settings do the Nodinite Windows Server Monitoring agent require?  

Where you install the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Windows Server Monitoring Agent][] in relation to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Monitoring Service][] and the servers you monitor determines your firewall configuration. Monitoring the agent's own host needs no ports. The diagram shows every host involved, with the agent on its own server; each arrow starts at the side that opens the connection.

<div class="mermaid">
graph LR
    subgraph "Nodinite Core Services Server"
        roMonitoringService(fa:fa-watch-fitness Monitoring Service)
    end
    subgraph "Nodinite Agent Server"
        roNI(fa:fa-monitor-waveform Windows Server Monitoring Agent)
    end
    subgraph "Target: Remote Windows Server"
        roWS(fab:fa-windows WMI, services, tasks, event logs, IIS)
    end
    subgraph "Target: Any network device"
        roDevice(fa:fa-router Ping target)
    end
    subgraph "Domain Controller"
        roDC(fa:fa-building Active Directory)
    end
    subgraph "DNS Server"
        roDNS(fa:fa-signs-post DNS)
    end
    subgraph "Azure Service Bus Relay (optional)"
        roRelay(fa:fa-cloud Relay namespace)
    end
    roMonitoringService --> |"Agent site port (v7) / 8000 (v6)"| roNI
    roNI --> |"135, 445, RPC 49152-65535"| roWS
    roNI -.-> |"WinRM 5985/5986, WMSVC 8172"| roWS
    roNI -.-> |"ICMP"| roDevice
    roNI --> |"88, 389, 636, 445"| roDC
    roNI --> |"53"| roDNS
    roMonitoringService -.-> |"443"| roRelay
    roNI -.-> |"443"| roRelay
</div>

*Network diagram: the Monitoring Service calls the agent, and the agent uses WMI/RPC, SMB, and optionally WinRM and the IIS Management Service against each remote Windows Server. Dashed arrows are optional hops.*

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>When the agent runs on the Core Services Server (the typical installation), you need no firewall rule between the <a href="https://docs.nodinite.com/core-services/monitoring-service/overview/">Monitoring Service</a> and the agent.</p></div>
</aside>

### Between the Monitoring Service and the Windows Server Monitoring Agent

The [Monitoring Service][] opens every connection; the agent never calls it. On Windows Server, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 hosts the agent as its own IIS web site, on a port you set per environment in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Portal][NodinitePortal]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> ([Servers step][]).

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Inbound|Core Services Server|Agent Server|TCP (HTTPS/HTTP)|Agent site port|Poll the agent, send configuration, run [Remote Actions][]|v7. No fixed default; use the port set in the Portal. Only when the agent is on a **remote** server|  
|Inbound|Core Services Server|Agent Server|TCP|[8000][Port8000]|Same, for Windows Service agents|⚠️ v6 and earlier only (legacy MSI installer on remote servers)|  

#### Option: Service Bus Relaying (cloud or hybrid)

Use [Service Bus Relayed connections][Service Bus Relaying] when <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> and the agent are on different networks. Both sides connect **outbound** to the Azure Relay namespace, so neither server needs an inbound rule. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> uses the same principle as the on-premises data gateway; see '[Adjust communication settings for the on-premises data gateway](https://learn.microsoft.com/en-us/data-integration/gateway/service-gateway-communication)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>' and the ['Azure Relay FAQs'][MicrosoftServiceBusRelayingLink]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|Azure Relay (`*.servicebus.windows.net`)|TCP|443|HTTPS (WebSockets): the agent's relay listener|All versions. Allow the relay host by DNS name, not by IP address: the relay gateway addresses change|  
|Outbound|Core Services Server|Azure Relay (`*.servicebus.windows.net`)|TCP|443|The Monitoring Service and the [Web API][] call the agent through the relay|HTTPS only, direct (no proxy)|  

### Between the Windows Server Monitoring Agent and remote Windows Servers

Required for WMI, performance counters, services, scheduled tasks, event logs, PowerShell, and IIS on **remote** servers.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|Target (Windows Server)|TCP|135|RPC Endpoint Mapper|Opens WMI/DCOM, Task Scheduler, and event log sessions|  
|Outbound|Agent Server|Target (Windows Server)|TCP|49152–65535|Dynamic RPC (WMI, DCOM, Task Scheduler, event log, [IIS][] via `dllhost.exe`)|Windows Server 2008 and later (1024–5000 on older versions). Can be reduced, for example to 49152–49162, based on expected concurrency. See '[How to configure RPC dynamic port allocation](https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-rpc-dynamic-port-allocation-with-firewalls)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>'|  
|Outbound|Agent Server|Target (Windows Server)|TCP|445|SMB / RPC over Named Pipes|Performance counters, Remote Registry, task folders, and event log access|  
|Outbound|Agent Server|Target (Windows Server)|TCP/UDP|139 (TCP), 137-138 (UDP)|NetBIOS|Legacy only: older name lookups and SMB over NetBIOS for DCOM authentication|  
|Outbound|Agent Server|Target (Windows Server)|TCP|5985|WinRM (HTTP)|PowerShell Remoting; required by the [PowerShell][] feature and some [IIS][] monitoring features. See [WinRM](#winrm)|  
|Outbound|Agent Server|Target (Windows Server)|TCP|5986|WinRM (HTTPS)|PowerShell Remoting over TLS (recommended)|  
|Outbound|Agent Server|Target ([IIS][] Server)|TCP|8172|IIS Management Service (WMSVC)|Default port; change it in IIS Manager under **Management Service**. See [Management Service](#management-service) and '[Remote Administration for IIS Manager](https://learn.microsoft.com/en-us/iis/manage/remote-administration/remote-administration-for-iis-manager)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>'|  
|Inbound|Target (Windows Server)|Agent Server|TCP|Same as outbound|Response traffic|Automatically allowed by stateful firewall inspection|  

For **scheduled tasks and event logs**, the remote server must run the **Remote Registry** (`RemoteRegistry`), **Task Scheduler** (`Schedule`, Automatic), and [Windows Event Log][] (`EventLog`) services, have **File and Printer Sharing** enabled, and allow these firewall rule groups. **Remote Event Log Management** covers event log monitoring and the scheduled task "[View History][]" Remote Action; **Remote Scheduled Tasks Management** covers monitoring, enabling, disabling, and running tasks.

```powershell
Enable-NetFirewallRule -DisplayGroup "Remote Scheduled Tasks Management"
Enable-NetFirewallRule -DisplayGroup "Remote Event Log Management"
# Verify rules are enabled
Get-NetFirewallRule -DisplayGroup "Remote Scheduled Tasks Management", "Remote Event Log Management" |
    Select-Object DisplayName, Enabled, Direction
```

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>For "0 tasks and 0 subfolders" or "Access Denied" errors, see <a href="https://docs.nodinite.com/logging-and-monitoring/windows-server/troubleshooting/how-to-monitor-remote-scheduled-tasks/">How to Monitor Remote Scheduled Tasks</a>.</p></div>
</aside>

#### Add firewall rule  

To monitor **IIS** on a **remote** Windows Server, add a rule on that server that lets `dllhost.exe` accept incoming requests from the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Windows Server Monitoring Agent][].  

|Setting|Value|  
|---|---|  
|Rule type|Inbound|  
|Rule type|Custom|  
|Program|%systemroot%\system32\dllhost.exe|  
|Protocol|TCP|  
|Local port|RPC Dynamic Ports|  
|Remote port|All Ports|  
|Action|Allow connection|  
|Profile|Domain|  

```python  
netsh advfirewall firewall add rule name="Remote IIS inetinfo" dir=in action=allow description="Remote IIS Service Managment" program="%systemroot%\System32\inetsrv\inetinfo.exe" enable=yes  

netsh advfirewall firewall add rule name="COM+ Remote Administration (All Programs)" dir=in action=allow description="" program="%windir%\system32\dllhost.exe" enable=yes localport=RPC protocol=tcp  
```  

### Between the Windows Server Monitoring Agent and any network device

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|Target (any device)|ICMP|-|Ping availability checks|Allow ICMP echo on each device to ping. See '[New-NetFirewallRule](https://learn.microsoft.com/en-us/powershell/module/netsecurity/new-netfirewallrule)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>'|  

### Between the Windows Server Monitoring Agent and the Domain Controller

Required when the agent authenticates with domain credentials or queries certificates from Active Directory.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|Domain Controller|TCP/UDP|88|Kerberos authentication|Required for domain authentication|  
|Outbound|Agent Server|Domain Controller|TCP/UDP|389|LDAP|Standard LDAP queries|  
|Outbound|Agent Server|Domain Controller|TCP|636|LDAPS (Secure LDAP)|Required for LDAPS authentication or querying certificates from AD|  
|Outbound|Agent Server|Domain Controller|TCP|445|SMB|Used if Group Policy or file-based certificate access is needed|  
|Inbound|Domain Controller|Agent Server|TCP/UDP|Same as outbound|Response to Kerberos / LDAP|Usually allowed by stateful firewall inspection|  

### Between the servers and DNS

See '[How DNS works on TCP and UDP](https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/dns-works-on-tcp-and-udp)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>'.

|Direction|Source|Destination|Protocol|Port(s)|Purpose|Notes|  
|---|---|---|---|---|---|---|  
|Outbound|Agent Server|DNS Server|TCP/UDP|53|Name resolution|Resolve the monitored servers and devices, the Domain Controller, and (with relaying) `*.servicebus.windows.net`. A local `hosts` file can replace DNS|  
|Outbound|Core Services Server|DNS Server|TCP/UDP|53|Name resolution|Resolve the Agent Server|  

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>Stateful Firewalls</strong>: Most Windows Firewall implementations are stateful, so response traffic for established outbound connections is allowed automatically. The inbound response rules above are for reference and troubleshooting.</p></div>
</aside>

## WinRM  

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>WinRM must be enabled on remote Windows Server if you are using the <a href="https://docs.nodinite.com/logging-and-monitoring/windows-server/features/powershell/">PowerShell</a> feature with remote target.</p></div>
</aside>

Run the scripts below on the **remote** server to enable WinRM:  

>The user must have administrator rights on the remote server.  

```powershell  
Enable-PSRemoting -Force  
```  

**Firewall rules** must **allow** PowerShell Remoting (TCP 5985 for HTTP, TCP 5986 for HTTPS).  

```powershell  
New-NetFirewallRule -Name "Allow WinRM" -DisplayName "Allow WinRM" -Enabled True -Profile Any -Direction Inbound -Action Allow -Protocol TCP -LocalPort 5985  
```  

## <i class="fal fa-question" aria-hidden="true"></i> Frequently asked questions  

Additional solutions to common problems and the FAQ for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Windows Server Monitoring Agent][] exist in the [Troubleshooting][] user guide.  

* <i class="fal fa-bug" aria-hidden="true"></i> [Invalid Class][InvalidClass]  
* ⌛[Timeout or Connection Error][Troubleshooting - TimeoutConnectionError]  
* <i class="fal fa-calendar-alt" aria-hidden="true"></i> [How to Monitor Remote Scheduled Tasks][]  

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

<i class="fal fa-rocket" aria-hidden="true"></i> [Install Windows Server Monitoring Agent][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

<i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Add or manage a Monitoring Agent Configuration][]  
<i class="fal fa-display" aria-hidden="true"></i> [Monitoring][]  
<i class="fal fa-gears" aria-hidden="true"></i> [Administration][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/WindowsServer/IIS/IIS6RolesAndFeatures.png  
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/WindowsServer/IIS/ManagementService.png  
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/WindowsServer/IIS/ApplyActions.png  

[Add or manage a Monitoring Agent Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/add-or-manage-monitor-agent/
[Administration]:https://docs.nodinite.com/administration/overview/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[Hardening]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/how-to-perform-hardening-on-your-nodinite-installation/
[How to Monitor Remote Scheduled Tasks]:https://docs.nodinite.com/logging-and-monitoring/windows-server/troubleshooting/how-to-monitor-remote-scheduled-tasks/  
[How to set Logon as a Service right]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/logon-as-a-service-right/  
[IIS]:https://docs.nodinite.com/logging-and-monitoring/windows-server/features/iis/
[IIS Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[Install Windows Server Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/windows-server/getting-started/install/  
[InvalidClass]:https://docs.nodinite.com/logging-and-monitoring/windows-server/troubleshooting/invalid-class/  
[MicrosoftServiceBusRelayingLink]:https://learn.microsoft.com/en-us/azure/azure-relay/relay-faq  
[Monitoring]:https://docs.nodinite.com/monitoring/  
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/  
[NodinitePortal]:https://portal.nodinite.com  
[Port8000]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/why-do-nodinite-use-port-8000/  
[PowerShell]:https://docs.nodinite.com/logging-and-monitoring/windows-server/features/powershell/  
[Release Notes]:https://portal.nodinite.com/marketplace/27  
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Servers step]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-platform-services
[Service Bus Relaying]:https://docs.nodinite.com/install-and-update/troubleshooting/configure-service-bus-relaying-for-monitor-agents/  
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/windows-server/troubleshooting/overview/  
[Troubleshooting - IIS - 2012]:https://docs.nodinite.com/logging-and-monitoring/windows-server/troubleshooting/overview/#iis-monitoring-on-windows-2016-or-earlier  
[Troubleshooting - TimeoutConnectionError]:https://docs.nodinite.com/logging-and-monitoring/windows-server/troubleshooting/timeout-or-connection-error/  
[View History]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-monitor-views/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Windows Event Log]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/event-log/
[Windows Server Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/windows-server/overview/