Re: [python-win32] Problem with OLE error 0x80041002

2009-12-15 Thread Tim Golden
Gowtham wrote: Inline- On Fri, Dec 11, 2009 at 9:16 AM, Tim Golden wrote: Gowtham wrote: I have a python script that retrieves the user profile path from the registry using wmi. I am doing this way as win32net.NetUserGetInfo could not somehow find the domain user. Here the code snippet-

Re: [python-win32] Problem with OLE error 0x80041002

2009-12-14 Thread Gowtham
Inline- On Fri, Dec 11, 2009 at 9:16 AM, Tim Golden wrote: > Gowtham wrote: > >> I have a python script that retrieves the user profile path from the >> registry using wmi. I am doing this way as win32net.NetUserGetInfo could >> not >> somehow find the domain user. Here the code snippet- >> > >

Re: [python-win32] Problem with OLE error 0x80041002

2009-12-11 Thread Tim Golden
Gowtham wrote: I have a python script that retrieves the user profile path from the registry using wmi. I am doing this way as win32net.NetUserGetInfo could not somehow find the domain user. Here the code snippet- {... snipped snippet ...] Does this reveal anything? import _winreg import wm

Re: [python-win32] Problem with OLE error 0x80041002

2009-12-10 Thread Gowtham
I have also tried with win32security instead of using wmi as mentioned in Tim Golden's post- import _winreg import win32security username = 'gowtham' sid = win32security.ConvertSidToStringSid(win32security.LookupAccountName(None, username)[0]) key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r"S