Skip to content

Instantly share code, notes, and snippets.

View danieltmckean's full-sized avatar

danieltmckean

View GitHub Profile
@danieltmckean
danieltmckean / gist:2986396
Created June 25, 2012 03:46
Userdata bootstrap script for Windows EC2 instances
<script>
echo Dim oXMLHTTP, oStream > GetPE.vbs
echo Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0") >> GetPE.vbs
echo oXMLHTTP.Open "GET", "http://puppetmaster.local/boot/pe.msi", False >> GetPE.vbs
echo oXMLHTTP.Send >> GetPE.vbs
echo If oXMLHTTP.Status = 200 Then >> GetPE.vbs
echo Set oStream = CreateObject("ADODB.Stream") >> GetPE.vbs
echo oStream.Open >> GetPE.vbs
echo oStream.Type = 1 >> GetPE.vbs
echo oStream.Write oXMLHTTP.responseBody >> GetPE.vbs