The default User Account Control (UAC) settings in Windows Vista and Windows 7 prevent you from performing many task on the command line. Performing administrative tasks such as executing batch or script files that require administrative permissions will require you to use an Elevated Command Prompt, or a command prompt with elevated permissions that is run as administrator.
There are several methods for launching an elevated command prompt in Windows Vista or Windows 7. I’ll show you the two most common.
Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
Click Yes to the UAC notification dialog and allow Windows Command Processor to run.
You can tell that you are running an elevated prompt by the presence of the word Administrator in the title bar of the command prompt.
Click Start and type cmd.exe. When the Instant search results are shown, right-click the cmd entry and choose Run as administrator. You may also select the cmd entry in the Instant Search results using the up and down arrows and press Ctrl+Shift+Enter on the keyboard. The Ctrl+Shift+Enter hotkey combination runs a program elevated, but only works when using the Instant Search feature in the Windows Vista or Windows 7 Start menu.