Thanks to Tim Golden suggestions I solved my problem. ...In case it would help someone:
<code> import _winreg import win32security username = 'Administrator' sid = win32security.ConvertSidToStringSid( win32security.LookupAccountName(None, username)[0] ) key = _winreg.OpenKey( _winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" + "\ \" + sid ) value, type = _winreg.QueryValueEx(key, "ProfileImagePath") print value </code> -- http://mail.python.org/mailman/listinfo/python-list