Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printers for all 14

Status
Not open for further replies.

kjb21

MIS
May 23, 2003
7
0
0
US
I have an XP Pro computer that I setup on my domain. Loaded the printers under my Domain admin account. When another user logs on they do not see the printers. I'd like all users to have the printers when the log-on.
 
I was trying to use just "1" batch file with a variable, to install a single or all printers at one time, but I am having trouble figuring how to pass the variable.

I wanted to post a note in our Outlook Public folders' Knowledge Base that would call the batch and depending on the link used it would run different senario(s) of installs.

The KB article would consist of dif links that would run as follows
\\ServerName\admin\Printers\PrinterInstall.bat 1
\\ServerName\admin\Printers\PrinterInstall.bat 2

This works if ran from a cmd prompt but I get an error when trying to use links in Outlook Public folders that the path is incorrect.

Batch File
if "%1"=="1" goto CANON-01
if "%1"=="2" goto XrxDC460-01
if "%1"=="3" goto XrxDC460-02
if "%1"=="4" goto etc
if "%1"=="5" goto etc
if "%1"=="6" goto ALL
GOTO END

:CANON-01
ECHO.
ECHO Installing Printer...
rundll32 printui.dll,PrintUIEntry /in /q /n \\ServerName\CanoniR2200-01
GOTO END

:XrxDC460-01
ECHO.
ECHO Installing Printer...
rundll32 printui.dll,PrintUIEntry /in /q /n \\ServerName\XrxDC460-01
GOTO END

:ALL
ECHO.
ECHO Installing ALL B/W Printers...
rundll32 printui.dll,PrintUIEntry /in /q /n \\ServerName\CanoniR2200-01
rundll32 printui.dll,PrintUIEntry /in /q /n \\ServerName\XrxDC460-01
rundll32 printui.dll,PrintUIEntry /in /q /n \\ServerName\XrxDC460-02
rundll32 printui.dll,PrintUIEntry /in /q /n \\ServerName\HP5Si-01
ECHO.
ECHO Done!
GOTO END

:END
 
This has been a very informative thread, but I had one quick question.

Is there a way to use the rundll32 option above if you need to install a printer on a specific port.

For example, Installing a HP Laserjet 4050 using local port \\server\printershare

We've used the localport method alot to avoid having the printers named PRINTER on SERVER for our automation in the factory.

Thanks
ChuckG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top