From e001785872f56ae4da3b90b508d793170454fac5 Mon Sep 17 00:00:00 2001 From: Ahmed Shawky Date: Thu, 25 Jun 2020 20:56:45 +0000 Subject: [PATCH] Fix a bug when packing WEF and Win10 --- Packer/scripts/enable-winrm.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packer/scripts/enable-winrm.ps1 b/Packer/scripts/enable-winrm.ps1 index b294cd3..2f0aa21 100755 --- a/Packer/scripts/enable-winrm.ps1 +++ b/Packer/scripts/enable-winrm.ps1 @@ -8,7 +8,7 @@ winrm set winrm/config/service/auth '@{Basic="true"}' winrm set winrm/config/client/auth '@{Basic="true"}' winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"}' netsh advfirewall firewall set rule group="Windows Remote Administration" new enable=yes -netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow +netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow remoteip=any sc config winrm start= disabled reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v StartWinRM /t REG_SZ /f /d "cmd.exe /c 'sc config winrm start= auto & sc start winrm'" Restart-Service winrm