Windows Vista: run command prompt with elevated administrator privilege 

Joined:
04/09/2007
Posts:
753

June 03, 2008 03:42:48    Last update: September 07, 2008 18:34:10
When I ran the vssadmin command to view the storage used by "System Restore and Shadow Copies", vista complained that I didn't have the right permissions, even though I was logged in as administrator!

Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\drxi>vssadmin List ShadowStorage
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.

Error: You don't have the correct permissions to run this command.  Please run this utility
from a command
window that has elevated administrator privileges.


To make it work you have to start the command prompt with "elevated administrator" privileges:

1. Click the "start" button and enter "cmd" into the "Start Search" box.

2. Right click the "cmd" icon in the "Programs" list and select "Run as Administrator".

Alternatively, it you already set up a shortcut for the command prompt. just right click the shortcut and select "Run as Administrator".
Share |
| Comment  | Tags