Deploy LPDSVC

  • Thread starter Thread starter AL
  • Start date Start date
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.
 
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.
 
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
 
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
 
Back
Top