Re: wmi addprinterdriver for remote PC
soz I missed the glaring error. The file paths need to be to a UNC location of have to exist on the remote PC. -- http://mail.python.org/mailman/listinfo/python-list
wmi addprinterdriver for remote PC
Hi all, cannot work this one out at all... import win32com.client WBEM = win32com.client.GetObject(r"winmgmts:{impersonationLevel=impersonate}!\\" + servername + r"\root\cimv2") WBEM.Security_.Privileges.AddAsString("SeLoadDriverPrivilege") drv = WBEM.Get("Win32_PrinterDriver") drv.Properties_('Na