From 49f79d0133947b61a1687cbbf2daab0ca3eda420 Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Thu, 20 Nov 2025 13:08:58 +0100 Subject: [PATCH] Try new Basic Auth --- misc/prepare-windows-agent | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/prepare-windows-agent b/misc/prepare-windows-agent index 8644675..726f457 100644 --- a/misc/prepare-windows-agent +++ b/misc/prepare-windows-agent @@ -2,7 +2,8 @@ Ansible WindowsResumen: 1) Poner el Windows de Red Publica a Privada 2) winrm quickconfig -force 3) winrm set winrm/config/service '@{AllowUnencrypted="true"}' -4) winrm set winrm/config/auth '@{Basic="true"}' +4.1) winrm set winrm/config/auth '@{Basic="true"}' +4.2) 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