Skip to content

Instantly share code, notes, and snippets.

@babo
Created March 2, 2016 15:53
Show Gist options
  • Save babo/0793539d1c3f611baf42 to your computer and use it in GitHub Desktop.
Save babo/0793539d1c3f611baf42 to your computer and use it in GitHub Desktop.
Userdata for windows machines
<powershell>
Import-Module AWSPowerShell
Copy-S3Object -BucketName joc-internal-resources -Key installer/windows2012/run_userdata.ps1 -LocalFile "$env:temp\run_userdata.ps1"
Set-ExecutionPolicy -executionpolicy remotesigned -force
& "$env:temp\run_userdata.ps1"
</powershell>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment