Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
how can i change registry of local machine and currnet user
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Feroz Khan
9y
356
1
Reply
hello Everyone,
how can i change registry from local machine and current user through c# without admin access i tried with below code but showing error..
please below code and help me about this how can i change registry with user without admin...
RegistryKey regkey;
RegistryKey regkeym;
regkey = Registry.CurrentUser.CreateSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", RegistryKeyPermissionCheck.ReadWriteSubTree, rs);
regkeym = Registry.LocalMachine.CreateSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", RegistryKeyPermissionCheck.ReadWriteSubTree, rs);
regkey.SetValue("NoViewOnDrive", 67108863, RegistryValueKind.DWord);
regkeym.SetValue("EnableLUA",1, RegistryValueKind.DWord);
regkey.Close();
regkeym.Close();
Note:
when i run application in with user account it is showing below error..
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
matrix
VLC ActiveX enable subtitles