Run, software.exe (Passing UAC)
Posted: 19 May 2016, 08:16
Hello,
I'm new in AHK, and actually feel sad because i'm so late knowing this cool scripting language. but so excited to learn it
I started scripting with success in very simple scripts, but i'm facing problem running scripts that contains (Run, software.exe) on remote computers when the UAC is on. I've found couple solutions (such as: scheduled task) in this forum, but unfortunately no one worked for me on remote computer.
My script does the following:
1 - run MBAM.exe
2- Wait the scan result of MBAM then take a screenshot (using another software) and save the Screenshot-%Var%.jpg
noted that i'm using MPS software to download my AHK script to remote computer, run it there, and email the screenshot to me. with few other steps.
another note: the remote computer doesn't have AutoHotkey installed, i'm using CMD to run my AHK script after downloading the AutoHotkey.exe file there using:
knowing that the script works fine on any computer IF UAC is OFF! But I cannot turn UAC off on all remote computers, also cannot install AutoHotkey on them. Is there any thing I can do or include in my script so the software MBAM.exe can run without the UAC access message?
I just want to get rid of this message
Thank you,
I'm new in AHK, and actually feel sad because i'm so late knowing this cool scripting language. but so excited to learn it

I started scripting with success in very simple scripts, but i'm facing problem running scripts that contains (Run, software.exe) on remote computers when the UAC is on. I've found couple solutions (such as: scheduled task) in this forum, but unfortunately no one worked for me on remote computer.
My script does the following:
1 - run MBAM.exe
Code: Select all
detectHiddenWindows,on
title := "Malwarebytes Anti-Malware Home"
run C:\Program Files (x86)\Malwarebytes Anti-Malware\mbam.exe
winWait, %title%
winGetPos,,,cw,ch, %title%
controlClick,% "x" cw//2 " y" ch-65, %title%
winMinimize, %title%
noted that i'm using MPS software to download my AHK script to remote computer, run it there, and email the screenshot to me. with few other steps.
another note: the remote computer doesn't have AutoHotkey installed, i'm using CMD to run my AHK script after downloading the AutoHotkey.exe file there using:
Code: Select all
[Path]\AutoHotkey.exe [Path]\My_AHK.ahk
I just want to get rid of this message

Thank you,