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.