Romeo 13 Posted November 21, 2018 Report Share Posted November 21, 2018 Hello Fellow Ubotters, I was figuring out this thing and I got the solution so wanted to share with you guys hope this helps someone I shared this because sharing is caring To run any exe with admin rights you have to create .bat file with the below code and then you can simply use shell batch hidden command to trigger your bat file with the code cd C:\your path to bat file (Your bat File Must Be In C Directory)start yourbat.batcreate bat file with below code:@echo offif not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)cd C:\your path to file (Your File Must Be In C Directory)start yourfile.exe NOTE: IT WILL GOING TO PROMPT USER TO RUN AS ADMIN 2 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.