The target OS needs to support WMI so 2000 or XP.
--
http://mail.python.org/mailman/listinfo/python-list
These functions should get you started and probably finished...
def createprinterport(IPAddress,ServerName):
WBEM =
win32com.client.GetObject(r"winmgmts:{impersonationLevel=impersonate}!\\"
+ ServerName + r"\root\cimv2")
WBEM.Security_.Privileges.AddAsString("SeLoadDriverPrivilege")
pr
You can use win32print.AddPrinterConnection(r'\\server\sharedprinter').
However, if the printer driver has to be copied to the client machine and
installed, that's probably where most of the time is spent.
hth
Roger
"Matt Chan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE
Matt Chan wrote:
>Hi, I am trying to create a python script to install a set of network
>printers. I have had success using an os.popen statement, using
>rundll32 and printui.dll. This takes way too long. Can someone point
>me in a quicker direction?
>
>thanks,
>Matt
>
>
I know this is the pytho
Hi, I am trying to create a python script to install a set of network
printers. I have had success using an os.popen statement, using
rundll32 and printui.dll. This takes way too long. Can someone point
me in a quicker direction?
thanks,
Matt
--
http://mail.python.org/mailman/listinfo/python-list