Jump to content
UBot Underground

Run Another Exe File As Admin


Recommended Posts

Hello There Ubotters,

 

Can someone please help me with Run as admin thing, I want my bot to open another app but as admin, if anyone know then please do let me know the way to do it.

 

I already tried shell batch hidden command which is cd c:\program files\path to another app then start app.exe, But this command did not open the app as admin.

 

 

Thanks in advance

Link to post
Share on other sites

do you have pash's plugin that contains the 'run as admin' command?... also, understand that when you achieve this, when the other exefires/opens, it is going to prompt the user to allow admin permissions.

Link to post
Share on other sites

Hello Kill3rbko,

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.bat
 
 
create bat file with below code:
@echo off
if 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
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...