This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Activation accès distant pour PC GOCOM Dashboard (172.16.1.24) | |
| # À exécuter UNE FOIS par Asmae sur le PC, en PowerShell Administrateur | |
| # Durée : ~30 secondes | |
| # 1) WinRM — service distant pour scripter sans RDP graphique | |
| Enable-PSRemoting -Force -SkipNetworkProfileCheck | |
| Set-Service -Name WinRM -StartupType Automatic | |
| Set-Item WSMan:\localhost\Service\Auth\Basic -Value $true | |
| Set-Item WSMan:\localhost\Client\AllowUnencrypted -Value $true | |
| Set-Item WSMan:\localhost\Client\TrustedHosts -Value '*' -Force |