documentation/modules/post/windows/manage/run_as_psh.md
This module will start a process as another user using powershell. By default, it will start an interactive cmd as the target user.
The process will use the Start-Process command of powershell to run a process as another user.
meterpreter > getuid
Server username: NT AUTHORITY\SYSTEM
meterpreter > run post/windows/manage/run_as_psh user=test pass=mypassword
[*] Hidden mode may not work on older powershell versions, if it fails, try HIDDEN=false
[*] Process 1672 created.
[*] Channel 30 created.
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\\>whoami
whoami
my-pc\test
C:\\>
meterpreter > run post/windows/manage/run_as_psh user=test pass=mypassword hidden=false channelize=false interactive=false exe=cmd path=C:\\\\windows args="/c start notepad"
[*] Process 9768 created.
meterpreter >