Deploy LPDSVC

A

AL

Hello,
i need to deploy the Windows Component Print Services for Unix, LPDSVC to
300 computers of my company .
Can this be done through Active Directory and how ?

Any help would be appreciated.
 
K

Klaus Jorgensen

AL explained on 08-01-2009 :
i need to deploy the Windows Component Print Services for Unix, LPDSVC to
300 computers of my company .
Can this be done through Active Directory and how ?

You can use the sysocmgr.exe program to add/remove Windows components:
http://support.microsoft.com/kb/222444

Can't tell if the XP installation source (CD or a server share) is
required to add the LPDSVC component.

I'd put the command in a startup script for the computers in question,
and perhaps add a reporting feature to tell which computers have
actually added the component.

You are aware that the LPDSVC component is required only if you need to
receive print jobs. Sending LPR print jobs is a standard feature in XP.
 
A

AL

Yes,the XP installation source is required to add this component.
Can anyone help me with the script , in case the i386 folder is not located
in the client machine.

thanks
 
K

Klaus Jorgensen

AL wrote on 09-01-2009 :
Yes,the XP installation source is required to add this component.
Can anyone help me with the script , in case the i386 folder is not located
in the client machine.

Try the script between the dashed lines.
The value "new_src" must be changed to match your setup of the Windows
distribution share.
Also, depending on your setup, the value "src_key_val" could be
"SourcePath" instead of "ServicePackSourcePath". On my home computer
installed from a CD with SP3 slipstreamed, it only works with the
latter one.
The "rep_path" points to a network share where a text file based on the
computername is created with the LPDSVC status.

--------------------------------------------------------------------
@set new_src=\\fileserver\SWINST$\Windows\XPSP3
@set src_key_val=ServicePackSourcePath
@ser rep_path=\\fileserver\SWINST$\InstStat\LPDSVC

@set src_key="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup"
@for /f "tokens=2* skip=3" %%i in ('reg query %src_key% /v
%src_key_val%') do set old_src=%%j
@set inf_file="%TEMP%\lpdsvc.txt"

@reg add %src_key% /f /v %src_key_val% /d %new_src%

@echo [NetOptionalComponents] >%inf_file%
@echo LPDSVC = 1 >>%inf_file%
@sysocmgr.exe /i:%SYSTEMROOT%\inf\sysoc.inf /u:%inf_file%


@del %inf_file%
@reg add %src_key% /f /v %src_key_val% /d %old_src%

@sc query lpdsvc >%rep_path%\%computername%.txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top