Question : Installing TCP/IP Priners in Sysprep Deployments

Hi folks!

Got an environment of about 150 computers divied into 4 computer labs. Each lab has its own network printer that uses TCP/IP. On each workstation, when we set up the printer, we install it as a local printer and create a Standard TCP/IP Port to point to the printer. Works fine.

Well, we've been creating images for each room using the Symantec Ghost Solution Suite and Microsoft's sysprep utility. I'm trying to figure out how to include the appropriate TCP/IP printer settings in the image and have the printer be available to all users who log in to the machine once the image is deployed.

Through sysprep.inf, I know you can automatically install a network printer using a UNC path. But in this case, Windows treats it as a local printer not a network printer. Is it possible to install a local printer -- and create the needed TCP/IP port -- through the sysprep process?

Thanks!

- Tom

Answer : Installing TCP/IP Priners in Sysprep Deployments

You may create a Group Policy under "Computer Configuration" to run the batch file automatically in every logon. The batch file will first check if the desired print queue is existed, if yes, finished else install it.

My situration is I need to install new network printers to every workstations within the same subnet of the printer's IP.  Since I've almost 10 sites and 10 same model printers, I used the below batch to automate the task. You may reference it and make it some change to fit you requirement.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
for /f "tokens=5* delims= " %%i in ('cscript %windir%\system32\prnmngr.vbs -l ^|find /i "enumerated"') do (if %%i gtr 0 GOTO END)

for /f "tokens=1,2,3* delims=." %%i in ('ping %computername% -n 1 ^| find /i "rep"') do set ipsubnet=.%%j.%%k.

for /f "tokens=1,2* delims= " %%i in ('type "\\<server>\<share>\PrinterLocation.txt" ^| find /i "%ipsubnet%"') do (
cscript %windir%\system32\prnport.vbs -a -o raw -n 9100 -r "%%j" -h %%i
rundll32 printui.dll,PrintUIEntry /if /b "LexMark C500N" /f \\servername\share\LexMark\LMABN.inf /r "%%j" /m "Lexmark C500")


:END
Random Solutions  
 
programming4us programming4us