TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Feroz Khan
1.4k
300
92.4k
how can i change registry of local machine and currnet user
Jul 27 2015 7:33 AM
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..
Reply
Answers (
0
)
matrix
VLC ActiveX enable subtitles