Try new Basic Auth 2

This commit is contained in:
2025-11-20 13:11:07 +01:00
parent 49f79d0133
commit e2e9899eb1

View File

@@ -2,8 +2,7 @@ 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) winrm set winrm/config/service '@{AllowUnencrypted="true"}'
4.1) winrm set winrm/config/auth '@{Basic="true"}' 4) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true
4.2) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -Value $true
5) Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value $true 5) Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value $true
6) Set-Item -Path WSMan:\localhost\Service\Auth\Basic -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 7) New-NetFirewallRule -Name "WinRM HTTP" -DisplayName "WinRM HTTP" -Enabled True -Direction Inbound -Protocol TCP -LocalPort 5985 -Action Allow