make exe file automatically run as administrator
In the properties of the exe you can set a compatibility option for this. There is also a PE within the SysInternals Suite called ShellRunAs.exe that may prove useful.
update: For system executable files that will not let you edit compatibility options you might be able to work around this by creating a shortcut of that exe and then within the properties of that shortcut you can select "Advanced" and set "run as admin".
If that does not work for your use case then the solution would likely require custom registry edit, which might not be appropriate to mention here.
TheGoodUser
Updated on September 18, 2022Comments
-
TheGoodUser over 1 year
Is there any way to make an
.exe
file runs automatically as administrator? Suppose that I logged in with a Guest user in my Windows; now when I want to run some programs such as resmon.exe it requires to run it as Administrator and the below windows pop up :I want to know, if I have password of the Administrator, is there any way to make this process automatically done when I double click on
resmon.exe
?
Update : I do a right-click on the program and select properties and change the settings in security tab as below :
But when I want to check
Run this program as Administrator
in compatibility tab, it is not active! why?Note : I test other files that those are not in Windows directory,and all the options in compatibility tab are active. I move the
resmon.exe
file from Windows directory to another drive (D:) and options activated!!! why? -
TheGoodUser over 9 yearsThank you dear jRadd, my problem solved for some files, but not for all files!Would you please check Update section in my question?
-
jredd over 9 yearsAhh, I didn't think about that. I think I have the solution. Right click resmon.exe and Send to--->desktop(create a shortcut). Now in the properties of that shortcut click "Advanced" and then "Run as admin"
-
TheGoodUser over 9 yearsNot works!in the properties of short cut there is no Advanced tab! there is compatibility, and in the compatibility all options are not active !
-
jredd over 9 yearsYikes, I just tried it on my Windows 7 x64 (professional) using resmon.exe and it worked. What version are you on?
-
TheGoodUser over 9 yearsIt's weird!!! I have also Windows-7 x64 professional v6.1 service pack-1!!!
-
Sun about 9 yearsCopy resmon.exe out of Windows folder and put it somewhere else like c:\temp and set it to run as Administrator.