D
Devin
I am attempting to create a script to be placed on lab
computers so when users login the printer for that lab is
installed. The printer install script works fine, but the
script does not check to see if the printer exists. If a
user logs in multiple times in the same lab the printer is
installed at each login, which is a problem.
How do I have the script either check to see if the
printer is installed or get it to delete the printer if it
is there, then reinstall it? Below are the commands im
using.
ADD PRINTER:
rundll32 printui.dll,PrintUIEntry /if /b "test" /f %windir%
\inf\ntprint.inf /r "\\stingray\lab035" /m "HP Laserjet
5m" /Z /q
REMOVE PRINTER(does not work):
rundll32
printui.dll,PrintUIEntry /dl /b "test" /c\\helpdesk1
Classes start soon, so if anyone gets any further please e-
mail me.
Thanks,
-Devin Radziej
computers so when users login the printer for that lab is
installed. The printer install script works fine, but the
script does not check to see if the printer exists. If a
user logs in multiple times in the same lab the printer is
installed at each login, which is a problem.
How do I have the script either check to see if the
printer is installed or get it to delete the printer if it
is there, then reinstall it? Below are the commands im
using.
ADD PRINTER:
rundll32 printui.dll,PrintUIEntry /if /b "test" /f %windir%
\inf\ntprint.inf /r "\\stingray\lab035" /m "HP Laserjet
5m" /Z /q
REMOVE PRINTER(does not work):
rundll32
printui.dll,PrintUIEntry /dl /b "test" /c\\helpdesk1
Classes start soon, so if anyone gets any further please e-
mail me.
Thanks,
-Devin Radziej