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-
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-
>>
>
>
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
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