psychonaut2000
Technical User
Here's what I've done so far:
1. created the following CMD file and called it ALLPRINT:
rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
start /wait sc \\%1 stop spooler
start /wait sc \\%1 start spooler
2. created a CMD file for each printer install as follows:
ALLPRINT (workstation-name) (PrintServer)\(PrinterName)
QUESTIONS:
-If I have a list of all our workstation names how can I write a batch file that will plug them into number 2 above so that the printers in question will be installed to all the workstations in my list?
-How do I edit this line:
rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
...so that no workstation name is required and the printer will be automatically installed on the workstation from which the command is run?
1. created the following CMD file and called it ALLPRINT:
rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
start /wait sc \\%1 stop spooler
start /wait sc \\%1 start spooler
2. created a CMD file for each printer install as follows:
ALLPRINT (workstation-name) (PrintServer)\(PrinterName)
QUESTIONS:
-If I have a list of all our workstation names how can I write a batch file that will plug them into number 2 above so that the printers in question will be installed to all the workstations in my list?
-How do I edit this line:
rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2
...so that no workstation name is required and the printer will be automatically installed on the workstation from which the command is run?