_winreg and access registry settings of another user
mensanator at aol.com
Thu Mar 4 23:21:16 CET 2010
On Mar 4, 3:24 pm, News123 <news... at free.fr> wrote:
> I habe administrator privilege on a window host and would like to write
> a script setting some registry entries for other users.
Why? Are you writing a virus?
> There are potentially at least two wo ways of doing this:
> 1.) start a subprocess as other user and change the regitrey for
> However I don't know how to start a process (or ideally just a thread)
> as another user with python.
> 2.) Load the 'hive' of the othe user and chnage the registry.
> It seems, that one has to load the 'hive' of a different user in order
> to have access to somebody eleses registry entries.
> I did not find any documetnation of how to load a 'hive' wit the library
> _winreg or another python library/
> Did anybody else try already something similiar?
> thanks in advance for pointers
More information about the Python-list