[python-win32] Is there a Python win32 RunAs equivalent where youcan send a password?

R. Alan Monroe amonroe at columbus.rr.com
Mon Mar 15 16:21:22 EST 2004


> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81402/index_txt

This looks really promising, but I've got some kind of rights problem:

>>> a = impersonate.Impersonate('somebody', 'xxxxxx')
>>> a.logon()
pywintypes.error: (1314, 'LogonUser', 'A required privilege is not held by the client.')




More information about the Python-win32 mailing list