I've got a print server in our Windows 2003 domain with a lot of print queues on it. We are seeing a significant amount of SNMP scans coming from this server which we think are unnecessary. Everything related to the print server itself is functioning fine, but the network team would like the scans to stop.

We can see the scans as they happen on the switch. I have installed Wireshark and can see the scans happen as well. I can see programs that are listening for connections via things like CurrPorts.

This server has had several maintainers over the years. There are residual drivers and things that don't need to be there. Unfortunately I can't do anything too drastic to clean things up or clean install the server because it is our primary print server our network relies on. We have plans to replace it within the next year or two.

So my question is....

How can I pinpoint which program/process on the Windows 2003 server is generating the SNMP scans?

3 Answers 3


I'd strongly suspect that the Print Spooler service (spoolsv.exe) is doing this because it's probably configured to do so. W/o a deeper description of the traffic (subnet-wide probes, or queries directed at individual printer devices) it's difficult to say. My gut says that if you examine the "Configure Port" properties of any "Standard TCP/IP Port" entries in the "Ports" tab of the "Server Properties" of the "Prnters and Faxes" dialog you'll find out that "SNMP Status Enabled" is checked.

Failing that, using "netstat -b" or "netstat -o" is the way to go, though with SNMP being what it is the sockets are probably going to close so quickly that you'll have trouble catching them.


Here's that script.

@echo off
rem Query for all Standard TCP/IP Ports (skipping the first returned value, which 
rem is the "/Ports" key

FOR /f "skip=1 usebackq delims=" %%i IN (`reg query "HKLM\System\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports" ^| find "HKEY_LOCAL_MACHINE"`) DO (

  rem For each port, disable SNMP
  REG ADD "%%i" /v "SNMP Enabled" /t REG_DWORD /d 0 /f >NUL 2>NUL
  • This seems to be the case. I was never able to specifically identify it via netstat or the other commands, but the Wireshark traffic I have captured correlates to Standard TCP/IP Ports that still have the SNMP checkbox enabled. I am going through and unchecking SNMP now on all corresponding ports that are being reported in Wireshark (there are about 250 ports in total). Thanks! Commented Nov 8, 2009 at 1:22
  • I'll code up a quick script to change those all for you and post it here momentarily. No sense in doing those all by hand. Commented Nov 8, 2009 at 1:44

netstat -b will show you all connections and which process generated that connection. Most likely, it is printer management software (home based or enterprise based) that is constantly trying to query the printers to keep a status of them, toner levels, etc.


Microsoft Network Monitor 3.3 enables you to filter traffic by process/process id.


You can also use TCPView:


The print server may have HP JetAdmin or WebJetAdmin installed. This is not required for normal operation.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .