Oracle® Virtual Networking for Windows Hosts Installation and Boot Guide

Exit Print View

Updated: July 2016
 
 

Add Scripting Capability to the WinPE CD

In some situations, you will need to run visual basic (.vbs) scripts in the Windows preboot environment. For example, you might need to run the firmware update script to update the option ROM on an HCA in your Windows server. By default, WinPE does not support .vbs functionality. So, if you want to be able to execute a script, you add scripting capability to the WinPE disc that you are creating.

Adding scripting capability is not mandatory for a standard WinPE disc. If you do not explicitly add this functionality, you cannot run scripts from the WinPE disc. In a Windows SAN Boot environment, this is a serious drawback due to not being able to update Option ROM firmware.


Note -  If you are adding scripting capability to the WinPE disc, do so before burning the WinPE image onto the physical medium (CD or DVD).

Assuming you have completed Step 1 through Step 11 in the Create the WinPE RAM CD procedure, you can add scripting capability by performing the following steps:

  1. Mount the boot.win image if it is not already mounted.
    dism /mount-wim /wimfile:c:\winpe_x86\iso\sources\boot.wim
    /index:1 /mountdir:c:\winpe_x86\iso\sources\mount
    dism /image:c:\winpe_x86\iso\sources\mount /Add-package
    /PackagePath:”C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpescripting.
    cab”
    dism /image:c:\winpe_x86|iso\sources\mount /Add-package
    /PackagePath:”C:Program Files\WindowsAIK\Tools\PETools\x86\WinPE_FPs\winpewmi.
    cab”

    Note -  If you type the command and mount an already mounted boot.win, an error message is displayed. You can ignore the error as it does not affect the procedure.
  2. Return to Step 13 of the Create the WinPE RAM CD procedure to complete creation of bootable disc.