Try new Basic Auth 3

This commit is contained in:
2025-11-20 13:11:37 +01:00
parent e2e9899eb1
commit 28e8594858

View File

@@ -1,11 +1,6 @@
Ansible WindowsResumen: Ansible WindowsResumen:
1) Poner el Windows de Red Publica a Privada 1) Poner el Windows de Red Publica a Privada
2) winrm quickconfig -force 2) winrm quickconfig -force
3) winrm set winrm/config/service '@{AllowUnencrypted="true"}' 3) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true
4) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true 4) Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value $true
5) Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value $true 5) New-NetFirewallRule -Name "WinRM HTTP" -DisplayName "WinRM HTTP" -Enabled True -Direction Inbound -Protocol TCP -LocalPort 5985 -Action Allow
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