Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script to disable SNMP for all mapped printers

$
0
0

I'm looking for a script to disable SNMP on all printers mapped to a single computer.

I'm fairly new to scripting and I'm having troubles finding if this is even possible. 

We've been going through and disabling SNMP on a few hundred printers, essentially breaking printers already mapped for thousands of users. Re-enabling SNMP is not an option. 

The only scripts I've been able to find require you to specify the printer port and the computer name. 

Basically, I need a script to say "disable SNMP on all printers". 

I also played around with the following registry entry, but it did not disable SNMP: 


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print

New DWORD Value.

SNMPLegacy

Set value 1.

I can have the script pushed at login, so as long as it works on a single computer, without needing to specify the port that requires a change, it should work without a hitch. 

I really appreciate any advice you guys may have. 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>