Page 1 of 1

Keyword: RUNAS - Run as another user

Posted: Sat Dec 24, 2022 10:48 pm
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