I've got four printers on my network that are all in different locations in the building. They all use the same driver. I'm want to use a script to map all four of them to the clients when they logon to the network and sets the closest one to their default printer. I'm currently on an NT 4.0 domain. Clients are XP and w98.
XP works great using the following:
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\estimating
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\construction
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\accounting
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\reception
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\estimating /y
The /y setting that printer as the default.
For the 98 systems I installed WSH 5.6.
This is the script I have so far and it works but when it maps the printer it creates it on the client using the driver name. I need it to be the name of the acctual printer share, "estimating, construction, etc..."
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\ve-controls\estimating"
PrinterDriver = "Fiery X3 55BW-M PS"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
any thoughts or ideas how I can make that work?
Cheers and thanks in advance.
Scully
XP works great using the following:
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\estimating
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\construction
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\accounting
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\reception
rundll32 printui.dll,PrintUIEntry /in /n \\ve-controls\estimating /y
The /y setting that printer as the default.
For the 98 systems I installed WSH 5.6.
This is the script I have so far and it works but when it maps the printer it creates it on the client using the driver name. I need it to be the name of the acctual printer share, "estimating, construction, etc..."
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\ve-controls\estimating"
PrinterDriver = "Fiery X3 55BW-M PS"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
any thoughts or ideas how I can make that work?
Cheers and thanks in advance.
Scully