Keyword: RUNAS - Run as another user

Keywords are used within scripts that enabled powerful features such as dynamic variables, clipboard manipulation, read/write files, mimic inputs and more.
User avatar
YiMeng
Author
Posts: 235
Joined: Sat Jul 18, 2020 10:58 pm
Location: NY
Contact:

Keyword: RUNAS - Run as another user

Unread post by YiMeng »

Description
  • Runs shell command, or executables/scripts as another user of windows.
Parameters
  • x: logon username.
  • y: logon password.
  • z: allow skip (skip/noskip)
    • Specifies if execution is blocking.
    • Valid values: skip/noskip or "1" for allow skip and "0" for no skip.
  • cmd: windows cmd to be executed.
    • This can be a path to another executable, script, or anything you want to run.
    • Pre-pending "@" to suppress shell output.
Usage
  • RUNAS x y z cmd
  • ex. RUNAS anotherUser anotherUserPW 1 cmd
    • Opens cmd as anotherUser