TheDancingFetus
Baseband Member
- Messages
- 68
- Location
- Cleveland
I have currently written a batch file that automatically installs printers from our print server when a user logs on to the PC. Problem is, if the user doesn't have Admin rights, none of the printers install, they error out. I was wonding if there is a way to add my Admin login credintials to the Batch file so the printers install. The goal is to have anyone who logs into this local machine to have access to all the printers avalible, without manually installing it for each user (Which I am currently doing).
My batch file looks like this:
REM Add printer
echo Installing [PCHPSPCF01] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSPCF01
REM Add printer
echo Installing [PCHPSBWL01] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL01
REM Add printer
echo Installing [PCHPSBWL02] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL02
REM Add printer
echo Installing [PCHPSBWL03] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL03
REM Add printer
echo Installing [PCHPSBWL04] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL04
REM Add printer
echo Installing [PCHPSBWL05] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL05
REM Add printer
echo Installing [PCHPSBWL06] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL06
echo Your default printer is [PCHPSPCF01] on [vwoachss002]
REM Set Default Printer
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\vwoachss002\PCHPSPCF01
Any help on this, or any alternative would be greatly appreciated.
My batch file looks like this:
REM Add printer
echo Installing [PCHPSPCF01] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSPCF01
REM Add printer
echo Installing [PCHPSBWL01] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL01
REM Add printer
echo Installing [PCHPSBWL02] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL02
REM Add printer
echo Installing [PCHPSBWL03] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL03
REM Add printer
echo Installing [PCHPSBWL04] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL04
REM Add printer
echo Installing [PCHPSBWL05] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL05
REM Add printer
echo Installing [PCHPSBWL06] on [vwoachss002]!
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\vwoachss002\PCHPSBWL06
echo Your default printer is [PCHPSPCF01] on [vwoachss002]
REM Set Default Printer
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\vwoachss002\PCHPSPCF01
Any help on this, or any alternative would be greatly appreciated.