Adding printer/port through command line automatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi - I am trying to install TCP/IP printers via command line on another XP
workstation in our domain using the following command I get this:

cscript prnport.vbs -a -r IP_10.23.x.x -s wgan-xw1.ourdomain.com -h 10.23.x.x
**Unable to connect to WMI service Error 0x800706BA The RPC Server is
unavailable.

Did I miss anything? Appreciate any questions and/or comments. - thanks
 
Enable the firewall port for WMI.

Also there is a bug in the wmi provider which will cause the current script
to loop in the WMI service. You will need to specify the -o parameter. If
the raw tcp port number is 9100 it gets set to this so specify -n for any
port number other than 9100.


http://support.microsoft.com/kb/875605/en-us
How to troubleshoot WMI-related issues in Windows XP SP2

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top