How to Install and Configure SNMP on Windows
In this article
To install and configure SNMP on Windows, add the SNMP feature through Settings > System > Optional features (or Server Manager on Windows Server), then open Services and set the SNMP Service to start automatically. After that, edit the service's properties to add a community string and a list of permitted hosts, and finally open the Windows Firewall to allow inbound UDP port 161. That is the whole job: install the feature, start the service, configure the community and security, and open the firewall. Everything below expands each of those steps, explains the security trade-offs, and covers the mistakes that most often leave a device silently unreachable by a monitoring tool.
SNMP (Simple Network Management Protocol) is how most network monitoring systems poll a Windows machine for uptime, interface counters, disk and CPU information. Windows ships the SNMP agent as an optional feature, so nothing needs to be downloaded. Note that menu labels can differ slightly by Windows version, edition and region, so if a path looks a little different on your machine, look for the closest equivalent.
What You'll Need
- Administrator rights on the Windows machine (installing features and editing the service requires elevation).
- The IP address or hostname of the monitoring server that will poll this machine.
- A community string you choose (think of it as a shared password). Use something long and random, not the default public.
- Access to the Windows Firewall settings, either locally or through Group Policy.
- Optionally, the SNMP WMI provider or vendor MIBs if your monitoring tool needs specific Windows performance counters.
Step-by-Step
- Open Optional Features. On Windows 10 and 11, go to Settings > System > Optional features, click Add a feature, search for SNMP, select Simple Network Management Protocol (SNMP) and install it. On Windows Server, open Server Manager > Add roles and features, click through to Features, tick SNMP Service (and SNMP WMI Provider if your tool needs it), and finish the wizard. A restart is usually not required, but the service appears immediately.
- Confirm the service exists. Press Win+R, type services.msc and press Enter. Scroll to SNMP Service. If you do not see it, the feature did not install; repeat step 1 and check for errors in the wizard.
- Set the startup type. Double-click SNMP Service, set Startup type to Automatic, and click Start if the service is not already running. Click Apply.
- Add a community string. Still in the SNMP Service properties, open the Security tab (older builds call it Traps or Agent depending on version). Under Accepted community names, click Add, choose READ ONLY unless you specifically need write access, and type your community string. Read-only is the safe default for monitoring.
- Restrict who can query. On the same Security tab, select Accept SNMP packets from these hosts and add the IP addresses of your monitoring servers. This is the single most important hardening step: it stops anyone else on the network from polling the device even if they guess the community string.
- Open the firewall. Go to Windows Security > Firewall & network protection > Advanced settings > Inbound Rules > New Rule. Choose Port, UDP, port 161, allow the connection, and scope it to your monitoring server's address. Name it something like SNMP inbound. If you use SNMP traps (outbound notifications), also allow outbound UDP 162 to the trap receiver.
- Test it. From the monitoring server, run a simple query such as snmpwalk -v2c -c yourcommunity targetIP system using your monitoring tool's built-in test, or a command-line SNMP utility. A response listing system OIDs means the install and configuration are correct.
Common Mistakes
The most frequent failure is leaving the community string as public. That is the default everyone tries first, and it is effectively no security at all. Choose a long random string and change it if it has ever been default. The second most common mistake is configuring the community but forgetting the Accept SNMP packets from these hosts list, or leaving it on Accept SNMP packets from any host, which exposes the agent to the whole network. Third, people open the firewall for TCP 161 instead of UDP 161; SNMP uses UDP, so a TCP rule does nothing. Fourth, the service is installed but left on Manual, so it stops after a reboot and the device goes dark in the monitoring tool. Fifth, administrators forget that a Windows update or a feature removal can silently drop the SNMP feature, so monitoring breaks after patch night with no obvious cause. Finally, using SNMPv3 without configuring the USM user and authentication properly leaves the agent unreachable even though v2c works fine.
Tips
Use SNMPv3 with authentication and privacy if your monitoring platform supports it; v1 and v2c send the community string in clear text, so anyone capturing traffic can read it. Keep a short written record of the community string and permitted hosts so the next administrator is not locked out. If you manage many machines, deploy the feature and settings through Group Policy or your configuration management tool rather than clicking through each one. Scope firewall rules to the monitoring server's IP rather than the whole subnet. And test after every patch cycle: a one-line query from the monitoring server is enough to catch a silently removed feature.
Troubleshooting
If the query times out, check in this order. First, confirm the SNMP Service is running and set to Automatic in services.msc. Second, confirm the firewall rule allows UDP 161 from the monitoring server's exact IP. Third, confirm the community string matches exactly, including case. Fourth, confirm the monitoring server's IP is in the Accept SNMP packets from these hosts list. Fifth, check that the monitoring server can reach the machine at all with a ping. If the service is missing entirely, reinstall the optional feature and check the Windows event log for installation errors. If queries work locally but not remotely, the firewall or the permitted-hosts list is almost always the cause. If the device answers but returns no useful data, the monitoring tool may need vendor MIBs or the SNMP WMI provider installed.
Frequently Asked Questions
Is SNMP still included in Windows?
Yes. It is an optional feature you add through Optional features or Server Manager; it is not installed by default.
Which port does SNMP use?
UDP 161 for queries and UDP 162 for traps. It does not use TCP.
Do I need SNMPv3?
Not strictly, but v3 adds authentication and encryption. v1 and v2c send the community string in clear text.
Why does my monitoring tool still show the device as down?
Usually the firewall rule, the permitted-hosts list, or the service startup type. Check those three before reinstalling anything.
Can I use the default community string?
You can, but you should not. public is the first string anyone tries; replace it with a long random value.