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: execute a .bat and .exe file as administrator once for all

06 Oct 2011   #1

Windows 7 32bit
execute a .bat and .exe file as administrator once for all

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 System SpecsSystem Spec
06 Oct 2011   #2
Microsoft MVP

Windows 7 Ult. x64


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

My System SpecsSystem Spec
06 Oct 2011   #3

Windows 7 32bit

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 System SpecsSystem Spec

06 Oct 2011   #4

64-bit Windows 10 Pro

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 System SpecsSystem Spec

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

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
Execute Program in Batch File As Administrator (Or Other Solution)
We use a program called TFC.exe (Temp File Cleaner - to wipe all sorts of temp files off a computer on a monthly basis. The older version was a standalone .exe that users used to execute from a a folder on a server. The newer version is actually installed on each user's PC. If...
General Discussion
Administrator with full access still can't execute program
Hi all! I'm having a problem with a Windows 7 Professional VM. I'm trying to "lock down" the permissions of some files (cmd.exe, ftp.exe, etc) For example, I modify the permissions for C:\Windows\System32\cmd.exe so that only SYSTEM and Administrators have full access. I removed Users,...
System Security
Windows 7 administrator: can't restart, shutdown, execute anything
Hi all, I have Windows Seven Ultimate running on a machine just fine for about half a year. After installing some piece of software related to android rooting, I found myself unable to do anything on the computer, as launch windows explorer, restart shutdown, start any other program, as this...
General Discussion
Help bat file to execute a bat
Hi everyone hope everyone in good health and have a good year. I need help please to make a bat file which works like a emulator or frintend to execute othe bat files. I've searched everywhere but cannot find a tutorial. Can some one please kind enough to help me. I understand it's not related to...
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 05:53.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App