Are you trying run the commands in the Elevated command prompt?
Open an elevated command prompt. Run:
To open an elevated command prompt, click start and type CMD. Right click the entry that appears in the menu and choose 'run as administrator'. Click continues at the UAC dialog. You must use this mode for these commands to work properly.