[SOLVED] SETX command - ERROR: Access to the registry path is denied

While configuring the Amazon EC2 Command Line Tools on Windows 7 Enterprise, I got the SETX command error "Access to the registry path is denied" during the EC2_HOME and Path environment setup.
setx EC2_HOME C:\work\ec2-api-tools-1.6.5.2 /m
ERROR: Access to the registry path is denied.
One of the solutions is to run "Command Prompt in administrator mode:

Set the variable in the system environment with SETX command works like a charm after that
setx EC2_HOME C:\work\ec2-api-tools-1.6.5.2 /m
SUCCESS: Specified value was saved.

No comments: