How to add a new key to the registry of other users using C # (or c / C ++ or another language)
here is the scenario: Client PC: Administrator account (authorized)
User "A" and "User B" can access the client PC only through the domain "myDomain" (they are already logged in once and have their own folder for the user of the client PC)
so I ran this code to create a new key using admin
Registry.CurrentUser.CreateSubKey (@ "SOFTWARE \ MyProgram \ DefaultConfig");
but the problem is that this key is only created for the Administrator account
I want to create this key for "User A" and "User B" also when using the "Administrator" account
both users "A" and "User B" are not displayed in HKEY_USERS
And if there are more users on one PC, I want to add this registry key to them, is it also possible to code a code that adds a key for all users? Read and write cycle?
source share