Unverified Commit 2187ccb3 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Add firewall rule for Packer

parent 43526210
......@@ -44,6 +44,9 @@ Function SetupPhase2 {
Add-DhcpServerv4Scope -Name "Internal" -StartRange -EndRange -SubnetMask -Description "Internal Network"
Set-DhcpServerv4OptionValue -ScopeID 192.168.0 -DNSServer -Router
Write-Host "Allow Packer http server"
New-NetFirewallRule -DisplayName "Allow Packer" -Direction Inbound -Program "C:\ProgramData\chocolatey\lib\packer\tools\packer.exe" -RemoteAddress LocalSubnet -Action Allow
Write-Host "Disabling autologon"
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoAdminLogon -PropertyType DWORD -Value "0" -Force
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment