Answered by:
Script to disable SNMP on print server queues

Question
-
Does anyone have a script that will turn off the SNMP setting on all the printer ports at one time on a 2008R2 print server?
- Moved by Bill_Stewart Thursday, August 22, 2013 3:11 PM Abandoned thread
Tuesday, July 16, 2013 11:31 AM
Answers
-
Navigate to this registry key on the 2008R2 print server and from there you can change the registry key value for "SNMP Enabled" under each TCP/IP Printer port.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports
You could automate it via a vbscript or a powershell.
Regards Sivakarthi
- Proposed as answer by Sivakarthi Thursday, August 22, 2013 3:40 PM
- Marked as answer by Just Karl Friday, September 27, 2013 4:01 PM
Thursday, July 25, 2013 10:24 PM
All replies
-
Not possible.
Do you mean turn of the SNMP on a printer. That would be vendor specific unless you have an SNMP management tool that is configured to manage the printers.
If you have SNMP management installed on the Windows server then you need to use the SNMP management tool to alter the configuration. SNMP is not turned on and off by port. You can delete the SNMP trap or add a password. You can turn SNMP service off or on but you cannot turn a single element on or off.
¯\_(ツ)_/¯
Tuesday, July 16, 2013 11:37 AM -
I have used the prnadmin.dll to accomplish exactly the same on Windows 2003 Print server. I've not tested it on Windows 2008 R2. Just Bing / Google for prnadmin.dll. You will get the documentation / samples about how to create / manage printers programmatically using methods defined in this DLL
Regards Sivakarthi
Thursday, July 25, 2013 8:17 PM -
I did not think the print admin dll was could manage the snmp settings. They are part of the installer bits.
¯\_(ツ)_/¯
Thursday, July 25, 2013 8:23 PM -
I just checked and prnadmin.dll is not available for Vista and later. I know we used it for pronter setup in WS2004 and earlier along with prn*.vbs wrappers.
¯\_(ツ)_/¯
Thursday, July 25, 2013 8:25 PM -
Navigate to this registry key on the 2008R2 print server and from there you can change the registry key value for "SNMP Enabled" under each TCP/IP Printer port.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports
You could automate it via a vbscript or a powershell.
Regards Sivakarthi
- Proposed as answer by Sivakarthi Thursday, August 22, 2013 3:40 PM
- Marked as answer by Just Karl Friday, September 27, 2013 4:01 PM
Thursday, July 25, 2013 10:24 PM -
Changing the registry value alone may not be enough. For me I also had to change the value for "SNMP Index" to 0, and a reboot was necessary to complete the action. I am also using a powershell command.
Kevin Anderson
Tuesday, June 14, 2016 3:21 PM