You can run a command prompt or any application as an administrator by right-clicking it and then clicking Run As Administrator. If you always run an app as an administrator, you can usually change a setting to automatically elevate privileges.
You have to follow different steps to always run the command prompt as an administrator:
1. Click Start. Type Command. Right-click Command Prompt, and then click Properties.
2. On the Shortcut tab, click Advanced.
3. Select the Run as administrator checkbox.
4. Click OK twice.
Now, when you launch a command prompt from the Start menu, UAC will prompt you for administrative privileges.