RESTAPI:How to manipulate the Registry in a different User Context
Aus Cryptshare Documentation
Affected to:
Cryptshare for Office 365 and Outlook starting from version 2.3.0
Situation:
You try to do some registry changes but when you start the Registry Editor you are in the Administrator context. This means you will only find the registry entries for the Administrator under Computer\HKEY_CURRENT_USER.
Solution:
To manipulate the Registry of another user on the local machine you first have to determine the users Security Identifier (SID).
Open the Powershell and execute the following command:
wmic useraccount get name,sid
You will get a list with domain users and the corresponding SIDs:
Alternatively, you can use the following command when only want to see the SID of the current user:
whoami /user
You are now able to identify the users SID and will be able to proceed the following steps:
- Open your Registry Editor
- Open the branch Computer\HKEY_USERS
- Search for your identified SID and open the branch
- Do your editing
Related issues | Add-in is disabled when launching Outlook |
---|