execute a .bat and .exe file as administrator once for all


  1. Posts : 2
    Windows 7 32bit
       #1

    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 file, i choose property and then compatibility tab.
    The option to change the privilege level is faded out and i'm unable to mark this option. The same happens for the .exe file. On the Security tab, i have the "Total Control" marked for all user's group.

    I'm running windows 7 ultimate, 32bits, and logged as Administrator privilege.
      My Computer


  2. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #2

    Hi,

    The message you are reffering to sounds like a UAC prompt - a built in security feature of Windows that is generally not recommended to turn it off.

    You can't remove UAC specifically for that program, but you can create an elevated shorcut that will bypass UAC. See this:

    Elevated Program Shortcut without UAC Prompt - Create

    Regards,
    Golden
      My Computer


  3. Posts : 2
    Windows 7 32bit
    Thread Starter
       #3

    that's a nice approach... but i don't see a way to setup the product into the batch file to run under administrative authority....

    any other suggestion ?
      My Computer


  4. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
       #4

    Hello Knob, and welcome to Seven Forums.

    Could you have the .bat file run the elevated shortcut created in that tutorial instead of the .exe file since the elevated shortcut will run the .exe file as administrator without a UAC prompt?
      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 16:36.
Find Us