Friday, April 25, 2008

How to disable mass storage devices in WinPE

PROBLEM:
When installing new Windows Severs using WinPE 2005, the SAN disks may be touched by the installation scripts. You ask for a way to prevent WinPE from using SAN drivers or disks.


RESOLUTION:
You need to disable the SAN-drivers in the WinPEs registry:

Copy your WinPE 2005 files into a local directory.

http://www.microsoft.com/technet/technetmag/issues/2007/02/DesktopFiles/default.aspx?loc=en

1. run regedit and select the HKEY_LOCAL_MACHINE hive.
2. Select File | Load Hive, then browse to the location of your Windows PE build. Select setupreg.hiv under I386\System32\ (or MiniNT\System32, if this is an image you are putting on a hard drive).
3. Enter a temporary name for the hive, such as WinPE, and browse to that node under HKLM.
4. Modify this key accordingly. Interestingly, note that this node is effectively the same as the node HKLM\System would be on a normal Windows installation.
5. Once you’ve made your modifications, select the key under HKLM you created in Step 3 (it is very important to do this correctly or you could damage your system).
6. Select File | Unload Hive… and confirm the Yes | No dialog, and ensure you dismount the registry every time, as having it locked will prevent a successful build of Windows PE.

Concerning Point 4/5 - Modifications:
1. Select HKLM -> ControlSet001 -> Services
2. Search for the drivers you want to deactivate (for example: ql1080, ql10wt…)
3. Right-click and select NEW -> DWORD value
4. Name: “Start” (without quotes)
5. Leave the data value on Hex 0x0 (hex 4 means mandatory, hex 0 means disabled)

Rebuild your WinPE ISO
(for example: D:\OPKTools\WINPE>OSCDIMG.EXE -n -betfsboot.com d:\pe2005 c:\pe3\winpe.iso)

No comments: