By default, Windows gives any program that you run the same privileges as you (the user) have. Sometimes, that’s not enough…
Even if you have an administrator-type account, Windows 7 will try to protect you if you’re run a program that tries to do something that requires administrator privileges.
At that point, Windows 7 will display a warning dialog box to ask if you really want to use your administrator privileges to do that (image below).
If you really want to allow the program to have administrator privileges/permissions, click the Continue button.
If you don’t, click Skip or Cancel.
Why would you even want a command window when you can run commands using the Run command on the Start Menu?
If you don’t have a Run command on the Start Menu, it’s easy to put it there. Right-click on the Windows Orb (a.k.a. Start Button), select Properties, Start Menu tab, click on the Customize button, and put a checkmark in the box beside "Run command".
If you use the Run command to execute a command, it will open a command window to execute it. But, when the command finishes, it will close the window.
If your command is something for which you want to see the results, such as a PING command, a NETSTAT command or even a DIR command, that Run window will close before you can see the results.
So, the usual way to run a text command is to use the Start Menu’s Run command to execute CMD.EXE, which will open a command window and leave it open until you close it.
The problem is that this is a normal-user command window and will not execute anything that requires administrator privileges, including saving files into protected directories like C:\Windows\System32.
So, the first step is to create an icon on the Windows Desktop that is a shortcut to the Windows file cmd.exe.
Just right-click a blank spot on the Desktop, select New from the pop-up options menu, then select Shortcut.
In the box that says "Type the location of the item:" just type cmd.exe (Windows already knows where this is so you don’t have to type the path or use the Browse… button) and click the Next button.
Now, you can set the title for your new shortcut. Since the program name was cmd.exe, that’s the default title, as shown below:
In order for the shortcut to open cmd.exe and run it as an administrator account type, you have to edit the properties of the shortcut.
Right-click on the shortcut, then select Properties. Select the Shortcut tab and click on its Advanced button.
That opens the Advanced Properties dialog box. Put a check in the box beside "Run as administrator" and then click the OK button.
Now you’re back to the Properties dialog box. Click on the General tab and add "as Administrator" to the shortcut’s title. Then click the OK button.
Your new "cmd.exe as Administrator" will look like the above image when it’s not the currently selected shortcut. If it’s the currently selected shortcut, you’ll see the shortcut’s whole title.