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
Reply

 Run bat file as administrator




Thread Tools




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 11:26 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33