aroy
2008-07-28 22:51:46 UTC
Greetings all,
I have a client who chooses to deploy printers via their login script.
For each of the ~30 printers I have a batch file containing:
:: Setting the default printer
rundll32 printui.dll,PrintUIEntry /in /n "\\server_name
\printer_name01"
rundll32 printui.dll,PrintUIEntry /y /n "\\server_name\priner_name01"
:: Setting the alternate printer
rundll32 printui.dll,PrintUIEntry /in /n "\\server_name
\printer_name02"
Users access is to these files is controlled by using ifmember.exe. If
user is a member of printer_group03 then run this batch file else move
on to next.
This works fine.
BUT, each time they login this scrip it run. How can I first check to
see if a specific printer is installed before adding it?
Essentially what I want to do is:
If exist(on local computer, NOT server) \\server_name\printer_name01
goto exit
if NOT exist \\server_name\printer_name01 add it
Is that at all possible??
thanks.
I have a client who chooses to deploy printers via their login script.
For each of the ~30 printers I have a batch file containing:
:: Setting the default printer
rundll32 printui.dll,PrintUIEntry /in /n "\\server_name
\printer_name01"
rundll32 printui.dll,PrintUIEntry /y /n "\\server_name\priner_name01"
:: Setting the alternate printer
rundll32 printui.dll,PrintUIEntry /in /n "\\server_name
\printer_name02"
Users access is to these files is controlled by using ifmember.exe. If
user is a member of printer_group03 then run this batch file else move
on to next.
This works fine.
BUT, each time they login this scrip it run. How can I first check to
see if a specific printer is installed before adding it?
Essentially what I want to do is:
If exist(on local computer, NOT server) \\server_name\printer_name01
goto exit
if NOT exist \\server_name\printer_name01 add it
Is that at all possible??
thanks.