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.
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:
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”