Skip to content

Instantly share code, notes, and snippets.

View mrballcb's full-sized avatar

Todd Lyons mrballcb

View GitHub Profile
@mrballcb
mrballcb / setup_winrm.txt
Last active October 18, 2018 13:35 — forked from mitchellh/setup_winrm.txt
Packer 0.12.3 example for Windows Server 2016 on AWS
<powershell>
write-output "Running User Data Script"
write-host "(host) Running User Data Script"
Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force -ErrorAction Ignore
# Don't set this before Set-ExecutionPolicy as it throws an error
$ErrorActionPreference = "stop"
# Remove HTTP listener