How do I run a batch file as an administrator in Vista without having to right click and choose "run as an administrator" every single time? I can't change the privilege level because it is disabled (greyed out).
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Simply put, I don't think you can.
Gary -
davepermen Notebook Nobel Laureate
create a shortcut to it and set there "run as admin". but the uac prompt will logically still return
-
http://www.vistaclues.com/run-a-batch-file-as-an-administrator/
cheers ... -
Yeah, create a shortcut and in the shortcut properties set it to run as administrator. Once a shortcut's created, you can right-click it > Properties > Shortcut tab > Advanced > Run as administrator.
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Gary -
That link is working for me.
-
-
-
cheers ... -
cheers ... -
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Yep, the link was fine last night when I checked it again. Twas a temporary glitch.
Gary -
If you don't want these prompts, you can turn off UAC. I don't recommend that though, since it means that all your programs will run with full permissions to modify the OS, change the system configuration, install things in the kernel, etc. But if you want to keep UAC on for most stuff, but you want to make an exception for particular shortcuts such as this one, follow these instructions to make the auto-elevating shortcuts: http://blogs.zdnet.com/Bott/?p=436&page=4
Running Batch File as an Administrator in Vista
Discussion in 'Windows OS and Software' started by hendra, Feb 18, 2009.