I’m wanting a vb that can change the local printer ports settings, if a printer is installed using a local port that points to a print server, I need to change the server name so it points to the same printer that's located on another server?
registry location for the ports is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports
registry location for the printers is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers
so ideally i need the script to search the registry in the above 2 locations and lower for keys with a value \\print1\printername and rename the keys to \\print2\printername only the server address needs to be changed.
once this is done restart the print spooler windows service
i have been searching for hours and cant find a script on the web to do this, any help or direction to a script i can manipulate would be greatly appreciated.
thanks in advance
registry location for the ports is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports
registry location for the printers is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers
so ideally i need the script to search the registry in the above 2 locations and lower for keys with a value \\print1\printername and rename the keys to \\print2\printername only the server address needs to be changed.
once this is done restart the print spooler windows service
i have been searching for hours and cant find a script on the web to do this, any help or direction to a script i can manipulate would be greatly appreciated.
thanks in advance