Since windows Vista and Windows 2008 when performing some system tasks in command prompt ,
you must run CMD with administrative privileges.
You can chose Command Prompt to run always with administrative privileges.
To do that navigate to All Programs>Accessories right click on Command Prompt and chose “Properties”
Under properties navigate to “shortcut” and press advanced
Select Run as Administrator and OK.
From now CMD will run always as Administrator