Skip to content

Commit

Permalink
Fix a bug when packing WEF and Win10
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxg33k committed Jun 25, 2020
1 parent 851fe3b commit e001785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packer/scripts/enable-winrm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e001785

Please sign in to comment.