Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Run bat file as administrator

27 Apr 2010   #1

Windows 7
Run bat file as administrator

I know there is a checkbox in the propertires of a batch file where you can select that this file should always be run as admin. But that checkbox is for me grayed out and inactive both on my Windows 7 Ultimate home system and on a Server 2008 at work.

How do I get this checkbox enabled again?

Thanks for your help in advance

My System SpecsSystem Spec
27 Apr 2010   #2


My System SpecsSystem Spec
27 Apr 2010   #3

Windows 7

Thanks for the hints. Unfortunately the information given there doesn't work for me.

My prob is not to run the file, but to run it with admin rights _always_. Both in the batch file's own context menu, and in the shortcut's properties menu, the Privilege section, where you could tick the checkbox to always run it as admin is grayed out, and inactive.

I've wondered whether it is some kind of system wide policy which I would have to set, like you have to do to allow for Scripts to be run, but I couldn't find any info in that direction. So I'm puzzled - why is that Privilige checkbox grayed out, and not only on one system, but on two different ones?
My System SpecsSystem Spec

08 Mar 2011   #4

Windows 7 32bit

I wrote a bat script example which prompts for admin access and then continues. I hope it helps some... jagaroth: admin access prompt for batch files
My System SpecsSystem Spec

 Run bat file as administrator

Thread Tools

Similar help and support threads
Thread Forum
Execute a file as Administrator
Hi I have to execute a file as Administrator to one user's System, so I created a shortcut access and use RUNAS with /SAVECRED option to only write one time the Administrator's Password , but I have to write it any time doesn't save it ..... So is there any other via to fix it?
General Discussion
Locked file in Program File (x86) and I'm administrator
Sorry if I'm placing this question in the wrong place. Please move if necessary. This is a combination question both virus and administrative issues. I have a file called C:/Program Files(x86)/sweetm that is a known virus that I cannot remove. When I try to do so, my system tells me "You...
Performance & Maintenance
execute a .bat and .exe file as administrator once for all
hello, Once i double click on bat file, a new program .exe is launched and receive a msg asking if i allow the program to modify my computer. I click yes, and my short life continues... Any clue what can be done to remove this msg once for all for this program ? After right click on .bat...
System Security
Run as administrator - Add to MSI File Context Menu
How to Add "Run as administrator" to Context Menu of MSI Files in Windows This will show you how to add Run as administrator to the context menu of all MSI files for all users in Vista, Windows 7 and Windows 8. You must be logged in as an administrator to be able to do this tutorial. ...
How to always run batch file as administrator?
I've made a batch file, but i don't know how to make it to always run as administartor. In .bat's file properties the option "always run as administartor" is grayed out. I have to right click it and then choose "run as administartor" from context menu. But i don't want to do it every time because...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:21.
Twitter Facebook Google+