Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remotely Add Printer

Status
Not open for further replies.

eggohead

Technical User
Oct 19, 2003
25
US
Hello,

I am using the follwing (from Microsoft KB 189105)to add a printer to a remote machine. This works fine however it takes quite a long time to copy of the driver files to the remtote machine which is on a different subnet. How can I modify the script to use the driver files on the remote machine rather than copying them over? What is the syntax to map to %windir% on a remote machine?

- Thanks for your time

rundll32 printui.dll,PrintUIEntry /ia /c\\server /m "AGFA-AccuSet v52.3" /h "Intel" /v "Windows 2000" /f %windir%\inf\ntprint.inf

rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /c\\SERVER /f "%windir%\inf\ntprint.inf" /r "lpt1:" /m "AGFA-AccuSet v52.3"
 
Hello eggohead,

I think it is not the /f part which you are looking for some modification, it is rather the options /l:
/l[path] printer driver source path

Take a look at the win2000svr resource kit's page:
In particular, at the section Utilities where you'll find all the options and explanations.

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top