The above code will open the command tool as the "admin" account. The wait 1 is just used to wait for the command line terminal to show before sending the user account's password and press enter. You now got a elevated cmd.exe.
Code: Select all
Let>EXE_PATH=cmd.exe RunProgram>runas /user:%COMPUTER_NAME%\admin "%EXE_PATH%" Wait>1 Send>SuP3rP455W0rD Press>Enter
This would be used to have your script selfcheck if it's running with admin rights, if not execute self like this.
Your computers admin account is easily found by running "compmgmt.msc" from the search (Win+R). I usually rename my administrator account to "admin" and set the password to a default one.