Because of company policy, most users don’t have local admin rights. But sometimes there is an application that always needs admin rights to start because it is wrong configured.

On the internet I finally found an easy startup of application. But it can be used for wrong things.

Here is a simple batch file. You need to point to the exe file.

set __COMPAT_LAYER=RUNASINVOKER
start "" "C:\Program Files (x86)\<LOCATION TO EXE FILE>.exe"

If you don’t want to run this script by user, because they can see easy what to change. Check my other blog Make from a PowerShell script an Exe file – VAN-DAAG

Leave a Reply

Your email address will not be published. Required fields are marked *