Jump to content
Dracil

Run exe without admin rights

Recommended Posts

Hi there! Hope someone could help me. Would be much appreciated. 
Ive searched alot but could not find anything. The only thing i found was this _RunWithReducedPrivileges, but seams oudated.


So i have a autoit file that meant to start a exe file.

Simply has this code:
Run("newfile.exe")

Iam currently logged in as a user with Admin rights.

However i want to run the "newfile.exe" without admin rights. I want it to be runned as a limited, lower level user. 
 

Anyone has any idea? Is it even possible through autoit, or do i need do do it trough a cmd command ?

Thanks in advance! ❤️

Share this post


Link to post
Share on other sites
Posted (edited)
6 hours ago, Dracil said:

However i want to run the "newfile.exe" without admin rights. I want it to be runned as a limited, lower level user. 

Seems almost too obvious, but maybe you have overlooked the following :

Run an external program under the context of a different user : RunAs / RunAsWait

Edited by Musashi

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Share this post


Link to post
Share on other sites

my crystal ball shows the OP is running the AutoIt script with elevated permissions, and that script needs to run another process not elevated. there are several ways to do that, one of which is the _RunWithReducedPrivileges which works just fine for me.

then again, my crystal ball may be broken... ah, if only there was a way to make the OP describe his purpose more clearly. i'm certain there is a simple way to achieve whatever purpose he has in mind.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...