Vikas NV wrote:
Hi,
I have been trying to use the Impersonate user code that you have in
the PyWin32.chm document.
[... snip ...]
obj = Impersonate('another_user', '01928348')
obj.logon()
print win32api.GetUserName()
os.system('bash sleep.sh')
obj.logoff()
Unfortunately
Hi,
I have been trying to use the Impersonate user code that you have in
the PyWin32.chm document.
The code that I am trying is :
import win32security
import win32con
import win32api
class Impersonate:
def __init__(self,login,password):
self.domain='BLAHBLAH'
self.login=login