Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-10 Thread raf
Roger Upole wrote: > raf wrote: > > Roger Upole wrote: > >> > >> win32security.LookupAccountName will give you the complete sid for a > >> username. > > > > if you look at the code i supplied, you'll see that that is precisely > > where i get the sid from: > > > > sid = > > win32security.Convert

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-10 Thread Roger Upole
raf wrote: > Roger Upole wrote: > >> raf wrote: >> >> > so my questions are: >> > did the sid for the account name ever uniquely identify the user? >> >> Yes. In fact it's the only way, since you can change the login name of an >> account. >> >> > how do i obtain the "1009" that needs to be appen

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-07 Thread Tim Roberts
raf wrote: > > if you look at the code i supplied, you'll see that that is precisely > where i get the sid from: > > sid = > win32security.ConvertSidToStringSid(win32security.LookupAccountName(None, > username)[0]) > > so win32security.LookupAccountName is not giving me the complete sid for the

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-07 Thread raf
Roger Upole wrote: > raf wrote: > > > so my questions are: > > did the sid for the account name ever uniquely identify the user? > > Yes. In fact it's the only way, since you can change the login name of an > account. > > > how do i obtain the "1009" that needs to be appended to the sid > > to

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-06 Thread Roger Upole
raf wrote: > so my questions are: > did the sid for the account name ever uniquely identify the user? Yes. In fact it's the only way, since you can change the login name of an account. > how do i obtain the "1009" that needs to be appended to the sid > to complete it? win32security.LookupAccou