Re: Python script to install network printers

2005-10-05 Thread future_retro
The target OS needs to support WMI so 2000 or XP. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script to install network printers

2005-10-05 Thread future_retro
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

Re: Python script to install network printers

2005-10-04 Thread Roger Upole
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

Re: Python script to install network printers

2005-10-04 Thread Matt Darby
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

Python script to install network printers

2005-10-04 Thread Matt Chan
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