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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Printer IP Ports on a cluster from command prompt

Status
Not open for further replies.

faf19671

Technical User
Dec 13, 2007
2
US
I have a lot of new printers I need to create on our cluster. I can not find a way to create the IP printer port. The following command creates the printer RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "test" /c \\cluster-group-name /f "C:\WINDOWS\INF\ntprint.inf" /r "TP-128-1:" /m "HP LaserJet 4100 PCL 6" /h "Intel" /v "Windows 2003" /u /z . This is successful because the TP-128-1: port already exits on the cluster. I have tried prnport.vbs but this command only creates ports on the local machine. I need them to be located on the cluster group.

Does anyone know of a way to do this?
 
Also, I have tried prnmngr.vbs and got the same results as prnport.vbs.
 
You cannot create ports on a virtual server because all tools like prnadmin,printui etc.... aren't cluster aware.

Many of the tools returns wrong information.In example if you enumerate printer queues on a virtual server.

This tools creates the ports on the local hive HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports

but the port information of the virtual server is under HKEY_LOCAL_MACHINE\Cluster\ResourceGUID..etc ....

Regards,
Cengiz Kuskaya
 
Just create a registry script to do it, its pretty easy if you examine the entrys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top