How to execute a Windows command on a remote PC? April 19, 2023 by Tarik If you are in a domain environment, you can also use: winrs -r:PCNAME cmd This will open a remote command shell.