Running Commands with Elevated Privileges

Some command-line programs require elevated Administrator privileges (via User Account Control) to do their job correctly. To use a Command Prompt window to run a program with elevated privileges, you must run it from a Command Prompt window that is itself “elevated.”

Image Caution

Be very careful when using an elevated Command Prompt window. Any commands you start from within this window will run with elevated privileges from the get-go, and you will receive no further UAC prompts when you start them. This includes Windows GUI programs—for example, if you type the command optionalfeatures, you will get the ...

Get Windows 8 In Depth now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.