Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello all


I try to use this command on windows xp and it is worked find
but when try to use it in windows 7 and 8 no action taken ?
my command is


reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AAATest /f /v test /t Reg_Sz /d 000
Posted
Comments
[no name] 14-Jul-14 16:00pm    
Probably because you do not have administrator rights.
[no name] 14-Jul-14 16:02pm    
no I am administrator !!!!
Sergey Alexandrovich Kryukov 14-Jul-14 16:18pm    
Just account? this is not enough. You need to run the application at elevated privileges.
—SA

1 solution

Please see my comment to the question. If you use just the administrative account, this is not enough. You also need to use the elevation of the privileges. Please see:
http://www.eightforums.com/tutorials/9564-run-administrator-windows-8-a.html[^].

Also, you can request the elevation right in your application, from the very beginning. In this case, you need to add and embed appropriate application manifest:
http://msdn.microsoft.com/en-us/library/bb756929.aspx[^].

—SA
 
Share this answer
 
v2
Comments
Maciej Los 14-Jul-14 17:43pm    
+5!
Sergey Alexandrovich Kryukov 14-Jul-14 18:01pm    
Thank you, Maciej.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900