Re: Printer Starup Script successfull for Win2k, but not for XP
- From: "wocka" <ambition80@xxxxxxxxxxx>
- Date: Wed, 11 May 2005 13:38:28 +1000
Gidday,
I tried a few years ago to make adding a printer via the "PrintUIEntry", but
maybe I wasn't case sensitive. Might have to re-visit that one.
So I used the NT Resource Kit file "con2prt.exe" and the following script:
################ Start Script ########################
@echo off
REM *****************************************
REM Created by Wocka 26/10/04
REM Script is to set up printers on users
REM workstations
REM *****************************************
REM ***************************************
REM copy con2prt.exe to the root dir of the
REM workstation to install and remove printers
REM for the user.
REM /c connects the printer to the workstation
REM /cd Connects the printer to the workstation and makes it the default
REM ***************************************
echo ******************************************
echo.
echo Please wait while the Network Printers are
echo added to your computer
echo.
echo ******************************************
IF NOT EXIST c:\con2prt.exe copy %logonserver%\netlogon\con2prt.exe c:\
REM ***************************************
REM To set up a printer
REM ***************************************
c:
cd\
con2prt /f
cls
echo ******************************************
echo.
echo Please wait while the Network Printers are
echo added to your computer
echo.
echo ******************************************
con2prt /cd \\server\hp2300
con2prt /c \\server\s4500
exit
################ End Script ########################
"Springside" <Springside@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BD68B923-6E91-4A0F-887D-9135C3FD1FA4@xxxxxxxxxxxxxxxx
> Hello,
>
> I am currently running a printer startup script via a batch file off of a
> Win2k server for Win2k clients, however when I attempt to run the startup
> script for WinXP clients I am unsuccessfull. The batch I use is below:
>
> Create a batch file (e.g. printers.bat) containing lines of the following
> form (the PrintUIEntry bit is case-sensitive):
>
> rundll32 printui.dll,PrintUIEntry /in /n \\printserver\printer1
> rundll32 printui.dll,PrintUIEntry /in /n \\printserver\printer2
> rundll32 printui.dll,PrintUIEntry /in /n \\printserver\printer3
>
> Is there any reason the script will run for Win2k but not for XP? If so,
> does anyone know a workaround?
>
> Thanks in advance!
>
>
.
- References:
- Printer Starup Script successfull for Win2k, but not for XP
- From: Springside
- Printer Starup Script successfull for Win2k, but not for XP
- Prev by Date: Re: Safe Mode detection
- Next by Date: Security Issue
- Previous by thread: Printer Starup Script successfull for Win2k, but not for XP
- Next by thread: Re: Printer Starup Script successfull for Win2k, but not for XP
- Index(es):
Relevant Pages
|