Windows Manage Run Command As User
This module will login with the specified username/password and execute the supplied command as a hidden process. Output is not returned by default, by setting CMDOUT to false output will be redirected to a temp file and read back in to display. By setting advanced option SETPASS to true, it will reset the users password and then execute the command.
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use post/windows/manage/run_as msf post(run_as) > sessions ...sessions... msf post(run_as) > set SESSION <session-id> msf post(run_as) > show options ...show and set options... msf post(run_as) > run