M
M
Mysterion2019-02-19 17:26:09
PowerShell
Mysterion, 2019-02-19 17:26:09

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

3 answer(s)
A
azarij, 2019-02-19
@Mysterion

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.

A
Alexander Chernykh, 2019-02-19
@sashkets

go to Windows via rdp and run what you need

D
Dmitry, 2019-02-19
@Astatroth

Remmina

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question