Run bat file as administrator


  1. Posts : 17
    Windows 7
       #1

    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 Computer

  2.   My Computer


  3. Posts : 17
    Windows 7
    Thread Starter
       #3

    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 Computer


  4. Posts : 2
    Windows 7 32bit
       #4

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 15:45.
Find Us