Difference between revisions of "AD User Control using Powershell Docker on Linux"

From Michael's Information Zone
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
<ref>https://superuser.com/questions/1156138/allow-powershell-remoting-only-from-one-address</ref>
 
<ref>https://superuser.com/questions/1156138/allow-powershell-remoting-only-from-one-address</ref>
 
<ref>https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/enable-psremoting</ref>
 
<ref>https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/enable-psremoting</ref>
 +
==Server==
 +
This is run on the Windows server.
 +
Open powershell as admin
 +
<pre>
 +
enable-psremoting -force
 +
set-item wsman:\localhost\client\trustedhosts <ip or name to be trusted> -force
 +
 +
</pre>
 +
 +
==Client==
 +
This is on the Linux client that sends the commands to the server.

Latest revision as of 10:27, 15 May 2017

[1] [2] [3] [4]

Server

This is run on the Windows server. Open powershell as admin

enable-psremoting -force
set-item wsman:\localhost\client\trustedhosts <ip or name to be trusted> -force

Client

This is on the Linux client that sends the commands to the server.