Monday, June 23, 2008

Quick start Visual Studio 2008 on Vista without UAC warning

Do you use Visual Studio 2008 on Windows Vista and still want to keep UAC on but avoid having the time consuming User Account Control warning each time you start VS 2008?

This can be solved by creating a scheduled task that runs with the highest privileges.

This hack can be used to start other programs like the registry editor (regedit.exe) that usually requires a permission to start.

Open Task Scheduler by entering Task Scheduler in the start menu search box.

Click on Create Task...

image

Give the task a name and check "Run with highest privileges".

On the Actions tab click on New.

Enter the path to Visual Studio 2008:
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
and for Start in:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\

Create a new shortcut.

Enter schtasks /run /tn "VS2008" and change VS2008 so it matches the name of the scheduled task.

Set the  Run option to Minimized and if you want change the icon. Location for the icon:
%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe

1 comment:

  1. One word of warning about starting Visual Studio this way is that I have found that sometimes the performance is awfully bad.

    Opening a solution takes forever and most everything is slow. A lot of the time Visual Studio hangs in a Not Responding state.

    Not sure though why this happens just because Visual Studio has been started with schtasks /run /tn.

    ReplyDelete

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.