Sign in to follow this  
Followers 0
GajjarTejas

Run Program without admin rights

6 posts in this topic

#1 ·  Posted (edited)

I have set Execution Level to highest available in Autoit3Wrapper in my autoit program.Then I Compile Program Here is Function of my code.

Func _sRun_IDMexe()
Local $s_IDMexe_Path = RegRead($s_regpath_IDM, "ExePath")
If Not FileExists($s_IDMexe_Path) Then $s_IDMexe_Path = @ProgramFilesDir & "\" & "Internet Download Manager\IDMan.exe"
If Not FileExists($s_IDMexe_Path) Then Return SetError(1)
$s_IDMexe_Path &= " /onboot"
If Not ProcessExists("idman.exe") Then
Run($s_IDMexe_Path)
Else
ProcessClose("idman.exe")
Run($s_IDMexe_Path)
EndIf
EndFunc ;==>_sRun_IDMexe

This function restart IDM or Run IDM with an admin rights.Is there any way to run IDM Without admin rights?

edit: autoit code!

Edited by GajjarTejas

Share this post


Link to post
Share on other sites



I guess that is nothing Autoit can influence. If the program needs admin rights, then Autoit needs them to start the program that way.

You can use Autoit to do that, but I don't think it is possible to trick the operation system.

So cunclusion it depends on the exe you are willing to execute.


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Gajjar Tejas

I wouldn't think so if the account being used has administative privileges considering that any process executed using the account would assume its execution privilege level. In other words, If the account running the program is an admin than the program will run using admin rights with the exception being (Windows Vista +) and UAC set to the max. I would try launching the program using a dummy limited account or perhaps a special account like "Guest". I don't think you can use the guest account because there is no password configured but just maybe you could temporarily add a password to it and remove it after your done.

RunAs()

; Account details can be changed from the command line using "net user" check the docs using "/?"

Anonymous

Edited by Decipher

Spoiler

censored.jpg

 

Share this post


Link to post
Share on other sites

thanks both. I Will use RunAs()

Share this post


Link to post
Share on other sites

GajjarTejas,

Your welcome. :)

I hope to see ya around.

Anonymous


Spoiler

censored.jpg

 

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
Sign in to follow this  
Followers 0

  • Similar Content

    • BlazerV60
      By BlazerV60
      Hello all,
      I've written the code below which launches chrome in incognito mode and then proceeds to go to the autoit website.
      From my understanding, the Run() command is also supposed to output the PID number related to the application that got launched from the Run command.
      However when I run the below lines, it outputs a PID number that is different from the newly launched chrome browser's PID number, does anyone know why and possibly explain how I could retrieve the accurate PID number associated with the newly launched browser?
      Global $iPid = Run(@ComSpec & ' /c start chrome.exe https://www.autoitscript.com/forum/ -incognito' ,"", "") msgbox(0,"",$iPid) Thank you,
      Brian
    • ur
      By ur
      With  ProcessList ( ["name"] )  we are able to get the running process list from the local machine.
       
      Is there anyway to get the list from Remote machine, more precisely to get to know the status whether a particular application is running or not on remote machine using AutoIT?
       
      We can implement through PSList.exe, but again we need to parse the text of it to read the output.
      Is there any direct UDF in AutoIT?
    • rootx
      By rootx
      I need help to understand why the run function does not work, but if i use it directly inside cmd shell the command works. $where is the name of the jpg file
      ShellExecute(@ComSpec ," /k C:\Users\root\Desktop\test\exiftool.exe -p $FileName "&'"'&$where&'"'&" > "&'"'&@ScriptDir&"\out.txt"&'"',@ScriptDir);<----- work Run("C:\Users\root\Desktop\test\exiftool.exe -p $FileName "&$where&" > "&@ScriptDir&"\out.txt",@ScriptDir);<--- doesn't work I would use the run command!
      Thx
    • Nareshm
      By Nareshm
      If Process exits then end process and ;Some code here {1}
       
      If Process does not exits then ; My {1} Code
    • nacerbaaziz
      By nacerbaaziz
      Hello
      How are you
      I have a question, please.
      I've created a window and i need
      when i run the script if it detect an other copy from the same script was runing
       the script close the first copy Automatically and run a new copy
      I want an example to understand it