Wednesday, October 22, 2008

The WinPE customisations keep coming, wanting more information about the system you are running WinPE on?

If you are familiar with BGInfo, you already know that it is a great way of displaying information about a system and you probably already use it in your base server build (for those not in the know check out BGInfo on TechNet). But what you may not know is that it works in WinPE and you can draw that same information out and display it on the screen.

Simply add the BGInfo executable and custom layout file to your WinPE scripts directory, modify your unattend.xml to include "X:\BGInfo.exe /accepteula /timer:0 /iqX:\WinPE.bgi /silent" and you are up and running.

To get you started I have added my layout file for download WinPE.zip (.86 KB).

NOTE: BGInfo is a 32-bit executable and since WinPE 2.0 64-bit doesn't support WOW it will only work in a 32-bit WinPE environment.

MDT | WinPE
Wednesday, October 22, 2008 7:07:37 PM (E. Australia Standard Time, UTC+10:00)
 Thursday, September 25, 2008

Something that I have been meaning to write up for some time now...

In nearly every environment I have worked in I have always come across some type of issue with Broadcom NICs.

In my most recent bout, it was determined that the network wasn't always (seemed to swap between having link negotation issues and invalid IP addresses) 100% initialised in WinPE before a task in the unattend.xml started executing. In our particular case we were working with Microsoft Deployment Toolkit which builds a custom WinPE image as part of deployment point synchronising.

Sample boot.bat

@echo off
echo.
echo INFO: Executing Sleep
echo.
cscript //nologo "%systemdrive%\sleep.vbs" 10
echo.
echo INFO: Renewing IP Address
ipconfig /renew
echo.
echo INFO: Executing Sleep
echo.
cscript //nologo "%systemdrive%\sleep.vbs" 10
echo.

Sample sleep.vbs

If Wscript.Arguments.Count = 0 Then
   ' Print Usage then quit
   Wscript.Echo "Usage: cscript sleep.vbs
<Number>"
   Wscript.Echo "
<Number> - Number of seconds to sleep."
   Wscript.Quit
Else
   ' Print how long we are sleeping for
   Wscript.Echo "INFO: Sleeping for " & Wscript.Arguments.Item(0) & " seconds"
   NumSeconds = Wscript.Arguments.Item(0) * 1000
   'Sleep
   Wscript.Sleep(NumSeconds)
End If

Unattend.xml Extract

<RunSynchronous>
   <
RunSynchronousCommand wcm:action="add">
      <
Description>CommandBreak WINPE Customisations</Description>
      <
Order>1</Order>
      <
Path>X:\boot.bat</Path>
  
</RunSynchronousCommand>
   <
RunSynchronousCommand wcm:action="add">
      <
Description>Lite Touch PE</Description>
      <
Order>2</Order>
      <
Path>wscript.exe X:\Deploy\Scripts\LiteTouch.wsf</Path>
   </
RunSynchronousCommand>
</
RunSynchronous>

Hardware | MDT | Network | WinPE
Thursday, September 25, 2008 11:09:05 PM (E. Australia Standard Time, UTC+10:00)
Navigation
Search
On this page....
Archives
<March 2010>
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910
Categories
Blogroll
Contact me
Send mail to the author(s) E-mail
Powered by

newtelligence dasBlog 2.0.7226.0.