Answer the question
In order to leave comments, you need to log in
How to correctly execute commands on remote Windows servers from Linux?
Hello. There are several servers running Windows Server 2016. How can I send commands to powershell from Linux?
For example, to run some .bat script or just execute clean code.
All servers must be in the same domain? With Linux, everything is simple. You take SSH data, use a password or key to connect, and execute commands.
With Windows, it's not entirely clear.
Answer the question
In order to leave comments, you need to log in
install openssh on the server and it will be like in Linux.
or set up PS remoting on the servers and use enter-pssession from any powershell client.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question