cscript prndrvr.vbs doesn't work with Windows 2003 server in clust

Discussion in 'Clustering' started by Robin, Jan 18, 2005.

  1. Robin

    Robin Guest

    Dear All,

    I'm trying to install a printer on Windows 2003 server cluster. So I have 2
    nodes: NODEA & NODEB. I want to use the command cscript prndrvr.vbs to
    install the driver. I use the option -s to install the driver on cluster
    (printsrv).
    After the option S the entry is the spooler network name(defined inside
    cluadmin.exe and ressource "Network name": in my example:
    printsrv.domepson.com).
    At each time I use the complete comand, the driver is installated on NODEA,
    never on printsrv.comepson.com.
    Is the command cscript prndrvr.vbs compatible with cluster?
    How to use it?
    My command:
    C:\WINNT\system32>cscript prndrvr.vbs -a -m "EPSON AL-C1900 Advanced" -e
    "Windows NT x86" -i "f:\epcagcfe.inf" -h "f:\" -s "printsrv.domepson.com" -u
    administrator -w xxxx

    Just for your info: If I install the driver manually (with Add printer from
    \\printsrv ...), no problemo, I can install, and print without problem.
    Thanks a lot for your help...
     
    Robin, Jan 18, 2005
    #1
    1. Advertisements

  2. Hi Robin,

    I'm by no means an expert in this subject matter WMI nor VBS Scripting, but
    I'll try to assist you to the best of my ability. On Windows XP and Windows
    2003, the printer and queues can be managed using the example scripts
    provided in the system32 directory on a stand-alone server.

    prncnfg.vbs - printer configuration script
    prndrvr.vbs - add, delete, and list drivers
    prnjobs.vbs - pause, resume, cancel and list jobs
    prnmngr.vbs - add, delete, and list printers and connections, set
    default printer
    prnport.vbs - get and set the port configuration
    prnqctl.vbs - pause, resume, and purge a printer
    pubprn.vbs - publish printers from a non Windows 2000 server into
    Windows 2000 DS

    I'm copying the "microsoft.public.win32.programmer.wmi" newsgroup, because
    maybe someone knows of a way to do this programmatically using a different
    WMI syntax.

    Have you tried using the Cluster Service Account (CSA) and password instead
    of Administrator one?

    --
    Hope this helps,
    Mike Rosado
    Windows 2000 MCSE + MCDBA
    Microsoft Enterprise Platform Support
    Windows NT/2000/2003 Cluster Technologies

    ====================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ====================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.
    <http://www.microsoft.com/info/cpyright.htm>

    -----Original Message-----
     
    Mike Rosado [MSFT], Jan 18, 2005
    #2
    1. Advertisements

  3. Robin

    Robin Guest

    Many thanks Mike for your help,
    In fact it works fine using prnadmin.dll, that means that I use some simple
    script like drvmgr.vbs, portmgr.vbs...and prnmgr.vbs to install the printer
    on the cluster...
    And it works a treat....
    Cheers.
    Robin


    "Mike Rosado [MSFT]" a écrit :
     
    Robin, Jan 19, 2005
    #3
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.