brd
2005-07-05 09:19:07 UTC
Modify registry keys under HKEY_CURRENT_USER or HKEY_USERS\<SID> from a
component inside the IIS
I have to create and modify keys and values from the registry under
HKEY_CURRENT_USER from the thread where the component is running. If the
component was invoked from visual basic script everything works fine. If the
component was invoked from asp I got the error 'access denied'. With a
registry monitor I saw that all my operations in the registry are mapped to
HKEY_USERS\.DEFAULT instead of HKEY_CURRENT_USER. If I create a process
(like cmd.exe) for the same user while the IIS is working the component
works fine. So I think if there is any process or thread interactive on the
same machine the component invoked from the IIS works fine. So I tried to
access the registry with the user SID HKEY_USERS\<SID> but this didn't work
too. I got the error 'parameter incorrect'. If I create a process (like
cmd.exe) for the same user again, it works fine. So what do I have to do to
modify the registry inside the IIS?
System:W2003 Server
Thanks
Andreas
component inside the IIS
I have to create and modify keys and values from the registry under
HKEY_CURRENT_USER from the thread where the component is running. If the
component was invoked from visual basic script everything works fine. If the
component was invoked from asp I got the error 'access denied'. With a
registry monitor I saw that all my operations in the registry are mapped to
HKEY_USERS\.DEFAULT instead of HKEY_CURRENT_USER. If I create a process
(like cmd.exe) for the same user while the IIS is working the component
works fine. So I think if there is any process or thread interactive on the
same machine the component invoked from the IIS works fine. So I tried to
access the registry with the user SID HKEY_USERS\<SID> but this didn't work
too. I got the error 'parameter incorrect'. If I create a process (like
cmd.exe) for the same user again, it works fine. So what do I have to do to
modify the registry inside the IIS?
System:W2003 Server
Thanks
Andreas