Tag Archives: Windows PE

Skatterbrainz Blog: Calling a URL from WinPE / DaRT Environment

Calling a URL from WinPE / DaRT Environment

So maybe you find a need to call a URL from a WinPE or DaRT session (yes, I know, DaRT is a modified WinPE), but without IE or a browser you find it a challenge. Fear not. There are options at your disposal. Option 1 is to install a light-weight browser into your WinPE bundle, like Bart’sPE did/does. Firefox is a fairly common choice for that, but if you can get another browser to do that you have that option. Option 2 is to invoke the XMLHttp object via script. You can do that with VBscript since wscript/cscript components are part of WinPE and DaRT. The nice thing about this is with XMLhttp, you essentially have a browser but without the GUI. You call URL’s and even fetch (i.e. “scrape”) the return HTML results if needed #I do that a lot and may post some examples soon## A command-line browser, sort of# Here’s an example of option 2 – calling an ASP page with parameters… url = “http://myserver#domain#com/loginfo#asp?c=Workstation123&os=Windows7&ts=Enterprise32b” On Error Resume NextSet ohttp = CreateObject(“Microsoft.XmlHttp”)oHttp.open “GET”, url, FalseIf err.Number 0 Then wscript.Echo “fail: unable to open remote URL for asset number!” wscript.Echo “fail: error is ” & err.Num

via Skatterbrainz Blog: Calling a URL from WinPE / DaRT Environment.

Custom WinPE ISO image

  1. install WAIK
  2. decompress WAIK supplement for Win 7 SP1 and overwrite files in C:\Program Files\Windows AIK\Tools\PETools
  3. menu Start – All Programs – WAIK – command prompt for deployment tools
  4. copype.cmd x86 D:\TOOLS\winpe_x86
  5. D:\TOOLS\winpe_x86>copy winpe.wim ISO\sources\boot.wim
  6. D:\TOOLS\winpe_x86>copy “c:\Program Files\Windows AIK\Tools\x86\imagex.exe” iso
  7. … copy other tools – see 6
  8. C:\Program Files\Windows AIK\Tools\PETools>oscdimg –n -bd:\TOOLS\winpe_x86\etfsboot.com d:\TOOLS\winpe_x86\ISO d:\TOOLS\winpe_x86\winpe31_x86.iso
To The Point

Anything about Technology and Business

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?