This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |