Remote Command Login Execution in Windows
https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
psexec \\mylap cmd
psexec pentest:'PentestPassword'@10.10.10.10
Optional, can be run without metasploit
by installing impacket. Alternatives to psexec
are smbexec
or wmiexec
.