Hey Experts! I am trying to delete out the registry keys relating to printers that point to our old print server. I found the printers listed in the registry (HKCU\Printers\Connections
) and would like to use a batch script to wipe out the entries referencing the old server.
The registry looks like this:
== ,,oldserver, printer1
== ,,oldserver, printer2
== ,,newserver, printer1
How can I delete the registry keys to the old server?
I tried this with no success:
reg delete "HKCU\Printers\Connections" /v ",,oldserver" /f