Activer la gestion à distance PowerShell
(WinRM (Windows Remote Management)
Get-Service WinRM
Enable-PSRemoting -Force
Test-WSMan
WinRM quickconfig
Get-NetFirewallRule
-Name ‘WINRM-HTTP-In-TCP’ |
Get-NetFirewallPortFilter
Set-NetFirewallRule
-Name ‘WINRM-HTTP-In-TCP’
-RemoteAddress Any
Get-Item ‘WSMan:\\localhost\Client\TrustedHosts’
Set-Item ‘WSMan:\\localhost\Client\TrustedHosts’ -Value ‘*’ -Force
Restart-Service WinRM
Get-WSManInstance -ResourceURI winrm/config/listener -Enumerate
winrm get winrm/config
