For Programmers: Free Programming Magazines  


Home > Archive > VBScript > November 2004 > How to create printerports and printers on a Windows 2003 cluster









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to create printerports and printers on a Windows 2003 cluster
Pim Leys

2004-11-24, 8:55 am

I need to create a lot of netwerkprinters on a Windows 2003 cluster. In a
non-clusterd environment I have a script that does this for me using a Excel
sheet as input source.

I use a Script like this (partial):
Set objPrinter= objWMIService.Get("Win32_Printer").SpawnInstance_
objPrinter.DriverName =
objPrinter.PortName =
objPrinter.DeviceID =
objPrinter.Location =
objPrinter.Network = True
objPrinter.Shared = True
objPrinter.ShareName =
objPrinter.Description =
objPrinter.Put_

This works perfectly on a windows server, but not on a Windows 2003 cluster.

does anyone have suggestions ow I can script against a Windows 2003 cluster??

Thanks in advance.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com