Is there a way to run remote commands in a windows system just like you can in Linux using the "ssh -c" command.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
PSTools PSExec can do exactly that! :)
You can uses powershell remoting. Psexec often gets blocked by antivirus. Powershell remoting would be the most reliable way of performing remote commands.
I have Cygwin installed on most of my Windows machines. With it's OpenSSH port you can use
ssh just as your can to any Linux/BSD/other machine.
If you don't want anything else that Cygwin offers copssh seems a popular alternative - it is basically just the OpenSSH port and its dependences extracted from Cygwin.
The pstools set (already mentioned by northirid in an earlier answer) are easier to setup if windows->windows is all you need but actually having a SSH service is very handy if you need a little more.
From Unix / Linux, you have :
winrs (https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/winrs), does what you need. It is a built-in command so you don't need anything extra. But first you need to run 'winrm quickconfig' on the remote machine (just once) for it to work.