# 1. Pastikan Service WinRM Running & Autostart Set-Service WinRM -StartupType Automatic Start-Service WinRM # 2. Aktifkan Otentikasi Basic & Unencrypted Set-Item WSMan:\localhost\Service\Auth\Basic -Value $true Set-Item WSMan:\localhost\Service\AllowUnencrypted -Value $true # 3. Buat Cert & Listener HTTPS Port 5986 $Cert = New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "winsrv" New-Item -Path WSMan:\Localhost\Listener -Transport HTTPS -Address * -CertificateThumbPrint $Cert.Thumbprint -Force # 4. Izinkan Port 5986 di Windows Firewall New-NetFirewallRule -DisplayName "Ansible WinRM HTTPS" -Direction Inbound -LocalPort 5986 -Protocol TCP -Action Allow ------------ Verifikasi dari WSL --------------- nc -zvw3 192.168.101.64 5986 --------- Hasil: (venv) agung@DESKTOP-9TTNQ3R:~/capstone_modul6$ nc -zvw3 192.168.101.64 5986 Connection to 192.168.101.64 5986 port [tcp/*] succeeded! ------------ Masalah di Ubuntu jija muncul : Segmentation fault (core dumped) (rc: 139) ------------------- Update Ubuntu : sudo apt-get update sudo apt-get install -f sudo apt-get install --reinstall python3 python3-apt -y