N
News123
Hi,
As part of a semi automatic installation and setup of a host I would
like to create one administrator account and one ore more (non
administrator) user accounts (without passwords)
Then I would like to start a script as administrator and change some
global and some user specific registry entries.
I have problems to modify the settings of another user whle being
administrator.
The registry entries don't exist). It seems I had to load some 'hive' to
be able to access somebody else's registry
I did my first tests not with C#, but with python and_winreg32,
but could switch for my above script
There are potentially at least two wo ways of doing this:
1.) start a sub process as other user and change the registry for
CURRENT_USER
However I don't know how to start a process (or ideally just a thread)
as another user under windows vista/7
2.) Load the 'hive' of the other user and change the registry.
It seems, that one has to load the 'hive' of a different user in order
to have access to somebody else's registry entries.
I don't know how to load a hive with the C# API.
Did anybody else try already something similar or have some pointers to
proceed?
thanks a lot in advance
N
As part of a semi automatic installation and setup of a host I would
like to create one administrator account and one ore more (non
administrator) user accounts (without passwords)
Then I would like to start a script as administrator and change some
global and some user specific registry entries.
I have problems to modify the settings of another user whle being
administrator.
The registry entries don't exist). It seems I had to load some 'hive' to
be able to access somebody else's registry
I did my first tests not with C#, but with python and_winreg32,
but could switch for my above script
There are potentially at least two wo ways of doing this:
1.) start a sub process as other user and change the registry for
CURRENT_USER
However I don't know how to start a process (or ideally just a thread)
as another user under windows vista/7
2.) Load the 'hive' of the other user and change the registry.
It seems, that one has to load the 'hive' of a different user in order
to have access to somebody else's registry entries.
I don't know how to load a hive with the C# API.
Did anybody else try already something similar or have some pointers to
proceed?
thanks a lot in advance
N