| Author |
Message |
Robin
Guest
|
Posted:
Tue Jan 18, 2005 6:09 pm Post subject:
cscript prndrvr.vbs doesn't work with Windows 2003 server in |
|
|
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... |
|
| Back to top |
|
 |
Mike Rosado [MSFT]
Guest
|
Posted:
Wed Jan 19, 2005 3:41 am Post subject:
Re: cscript prndrvr.vbs doesn't work with Windows 2003 serve |
|
|
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-----
"Robin" <Robin@discussions.microsoft.com> wrote in message
news:16B1285C-30F7-4FF6-9003-318B3D1C9048@microsoft.com...
| Quote: | 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...
|
|
|
| Back to top |
|
 |
Robin
Guest
|
Posted:
Wed Jan 19, 2005 4:51 pm Post subject:
Re: cscript prndrvr.vbs doesn't work with Windows 2003 serve |
|
|
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 :
| Quote: | 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-----
"Robin" <Robin@discussions.microsoft.com> wrote in message
news:16B1285C-30F7-4FF6-9003-318B3D1C9048@microsoft.com...
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...
|
|
|
| Back to top |
|
 |
|
|
|
|