From e2e9899eb1262c02e7b29d38119604f1d667bfdc Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Thu, 20 Nov 2025 13:11:07 +0100 Subject: [PATCH] Try new Basic Auth 2 --- misc/prepare-windows-agent | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc/prepare-windows-agent b/misc/prepare-windows-agent index 726f457..ace9ec4 100644 --- a/misc/prepare-windows-agent +++ b/misc/prepare-windows-agent @@ -2,8 +2,7 @@ Ansible WindowsResumen: 1) Poner el Windows de Red Publica a Privada 2) winrm quickconfig -force 3) winrm set winrm/config/service '@{AllowUnencrypted="true"}' -4.1) winrm set winrm/config/auth '@{Basic="true"}' -4.2) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true +4) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true 5) Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value $true 6) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true 7) New-NetFirewallRule -Name "WinRM HTTP" -DisplayName "WinRM HTTP" -Enabled True -Direction Inbound -Protocol TCP -LocalPort 5985 -Action Allow