I have windows vista premium and while i was trying to install something I was getting the bellow error though my logged in user account has the Admin privilege.
"An error has occurred (0x80070005).
You must have administrative rights on this machine in order to run this
tool."
After lots of googling I found the solution. Though user account has the admin privilege, while we try to run some exe from cmd it runs as a standard user. To run cmd as an Administrator follow the below step.
1-Go to C:\Windows\System32
2-Rightclick on cmd.exe and select run as Administrator.
Now you can run any exe from cmd and you may not get Admin access related errors.
We can also run any exe as Administrator by right click on that exe and select "Run as Administrator" to avoid the error.
For windows vista there is CMD.COM in C:\Windows\System32.
For running CMD.COM as an Administrator you need to create a shortcut in desktop.
Then right click on that file> select properties>Select Compatibility tab and check the "Run this program as an Administrator".
Now the next time when you click on that shortcut it will call the CMD.COM with the Administrator Privilege