Logon Script to change network printers from one server to another
Posted on 2005-05-16
I’m looking to create a logon script in an environment of Win2k and XP Pro on a Windows 2000 domain for changing the server hosting the network share of a printer. In a small office of 15 users I have a Windows 2000 server sharing the 3 printers in that site. The 15 users either have one, both, or all three printers in their local profiles with the default printer being different from person to person too.
I’m replacing the existing Win2k server with a new one and would like to change the printers on each client machine without going from computer to computer. The shared names of the printers on the new server are the same as the old. How can I create a script to change the server? The script could be a vbs, wsh, or a batch file; it doesn’t matter to me.
User1 on Computer1 has a connection to \\OldServer\Printer1 and \\OldServer\Printer3 under her profile with Printer3 as the default.
User2 on Computer2 has a connection to \\OldServer\Printer2 and \\OldServer\Printer3 under his profile with Printer2 as the default.
The ideal script would simply rename \\OldServer to \\NewServer in both scenarios without changing the default printer and without adding a printer they didn’t connect to before.