R
RayHL
Guest
Hi Everyone,
My case is a little strange. I will describe it as much as I can.
I have a .net application in c#, which uses ProcessStartInfo and Process to launch command "reg" to modify a registry key/value. ProcessStartInfo takes in an user who has the administrator right and its credentials to modify the registry value (call it as admin user).
The .net application can be run by any user.
If the .net application is run in a windows 7 computer, it runs successfully and modify the registry key/value. If the same .net application is run on a windows 10 computer, it gets an access denied whether the application is run by a normal user or run as the same admin user. However, if the same command "reg" is run directly from a command prompt as the admin user, it works fine and modify the registry key/value. Is there anything I am missing here in the .net application?
Thank you for any suggestion.
Raymond
Continue reading...
My case is a little strange. I will describe it as much as I can.
I have a .net application in c#, which uses ProcessStartInfo and Process to launch command "reg" to modify a registry key/value. ProcessStartInfo takes in an user who has the administrator right and its credentials to modify the registry value (call it as admin user).
The .net application can be run by any user.
If the .net application is run in a windows 7 computer, it runs successfully and modify the registry key/value. If the same .net application is run on a windows 10 computer, it gets an access denied whether the application is run by a normal user or run as the same admin user. However, if the same command "reg" is run directly from a command prompt as the admin user, it works fine and modify the registry key/value. Is there anything I am missing here in the .net application?
Thank you for any suggestion.
Raymond
Continue reading...