1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Installing local Postscript printer on remote PC with VBS

Discussion in 'Legacy Windows' started by bday_bbs, 2003/10/06.

Thread Status:
Not open for further replies.
  1. 2003/10/06
    bday_bbs

    bday_bbs Inactive Thread Starter

    Joined:
    2003/10/06
    Messages:
    13
    Likes Received:
    0
    Hello all,

    I am having difficulty locating information on how to install via
    script a Postscript printer driver on a remote PC. I tried adding a
    locally installed PS print-to-file printer to one computer then used
    the standard code of:

    Set WshNetwork = CreateObject( "WScript.Network ")
    WshNetwork.AddWindowsPrinterConnection "\\path\printer_name "

    This will attempt to add the printer but not the drivers. I've been
    looking at all of the WMI attributes for adding \ intalling printer
    drivers but am unable to locate any....

    Any thoughts?

    PS: Desktop are running Win2k Pro and servers still at NT4.0 with WMI
    core installed....

    thanks.

    Bart
     
  2. 2003/10/06
    Angel71

    Angel71 Inactive

    Joined:
    2003/09/01
    Messages:
    83
    Likes Received:
    0
    Have you tried using printui.dll from a Win2k client machine instead?
    \\machine is the remote target computer name (the machine the driver will be installed on).
    For example...

    Code:
    rundll32 printui.dll,PrintUIEntry /if /b  "HP Laserjet 4M/4M Plus PS 600" /f %windir%\inf\ntprint.inf /r  "file:" /c\\machine /m  "HP Laserjet 4/4M Plus PS 600 "
    
    If you had a lot of clients, you could use a FOR loop in your batch file.

    See 189105
     
    Last edited: 2003/10/06

  3. to hide this advert.

  4. 2003/10/06
    bday_bbs

    bday_bbs Inactive Thread Starter

    Joined:
    2003/10/06
    Messages:
    13
    Likes Received:
    0
    Angel....all I can say is YOU ROCK. That information is exactly what I was looking for.....I was definitely looking in the wrong places and making life unnecessarily difficult for myself...

    Thanks again...

    Bart
     
    Last edited: 2003/10/06
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.