A little help on UEFI or Secure Boot with CSM settings for Windows installs and Dism update package commands

I just ran into a case where the OS would not install. I think they are using a PCI SSD device. I realized the AHCI setting is likely needed along with UEFI enabled and enable CSM to boot.


With this being more complicated then it used to be, I just put together some good resources on the overall install and update process. This is not my article. Its just a collection of good places to look for help.


Dell Windows Installation Guide sound good. Well a Dell MVP did write it, so it must be good! Recalling #Iwork4Dell, i just share and let you decide:


Windows 10 Installation Guides    By by Dr Philip Yip

Windows OEM Facts and Download  Same Author

Example MS article on UEFI boot


Once you have Windows installed on your PCI drive, you will likely end up with windows Updates to apply. If you have problems, knowing how to manipulate them will be pretty important. I found some good commands in a legacy document. I dont want this document to go away, so I recreated the section below:

The following is from an old article about updating drivers for NVME drives. but you can see value in the commands below


  1. Install the latest Windows ADK for Windows 8.1 update.
  2. Create local folders c:\temp\src c:\temp\mount, c:\temp\winremount, c:\temp\hotfix, and c:\temp\drivers.
  3. Copy the setup sources from the DVD or a mounted ISO to C:\temp\src.
  4. Copy the hotfix (.msu or .cab files) to C:\temp\hotfix.
  5. Copy the driver files to c:\temp\drivers.
  6. Run Command Prompt as an administrative.
  7. Insert the hotfixes and drivers to the boot.wim, then update the sources folder by running the following Deployment Image Servicing and Management (DISM) commands. For more information about DISM, see the DISM Operating System Package Servicing Command-Line Options.
    dism /Mount-Image /ImageFile:c:\temp\src\sources\boot.wim /Index:1 /MountDir:c:\temp\mount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse
    dism /Unmount-Image /MountDir:C:\temp\mount /Commit
    dism /Mount-Image /ImageFile:c:\temp\src\sources\boot.wim /Index:2 /MountDir:c:\temp\mount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse

    Manually sort the folder C:\temp\mount\sources by date, and then copy the updated files to c:\temp\src\sources.

    dism /Unmount-Image /MountDir:C:\temp\mount /commit
  8. Obtain the index from the Install.wim information by running the following command, and then check every index to see how many indexes have to be updated.
    dism /Get-WimInfo /WimFile:c:\temp\src\sources\install.wim
  9. Insert the hotfixes and drivers to install.wim and winre.wim by running the following commands:
    dism /Mount-Image /ImageFile:c:\temp\src\sources\install.wim /Index:1 /MountDir:c:\temp\mount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse
    dism /Mount-Image /ImageFile:c:\temp\mount\windows\system32\recovery\winre.wim /Index:1 /MountDir:c:\temp\winremount
    dism /Image:C:\temp\mount /Add-Package /PackagePath:c:\temp\hotfix
    dism /Image:C:\temp\mount /Add-Driver /Driver:c:\temp\drivers /Recurse
    dism /Unmount-Wim /MountDir:C:\temp\winremount /Commit
    dism /Unmount-Wim /MountDir:C:\temp\mount /Commit

    Note If there are multiple indexes in step 8, update them one by one.

  10. Create an ISO file, and then rename the label by running the following oscdimg commands. For more information about oscdimg, see the Oscdimg Command-Line Options.

    For Legacy BIOS Boot mode:

    oscdimg -LTEST -m -u2 -bC:\temp\src\boot\etfsboot.com C:\temp\src C:\temp\Win7.NVME.ISO

    For Legacy and UEFI BIOS multiple Boot mode:

    oscdimg -LTEST -m -u2 -bootdata:2#p0,e,bC:\temp\src\boot\etfsboot.com#pEF,e,bC:\temp\src\efi\microsoft\boot\efisys.bin C:\temp\src C:\temp\Win7.NVME.ISO
  11. Right-click the ISO file, and then click Burn disc image to burn the DVD.


  • If you have to compress the image, run the following command:
    Dism /image:c:\temp\mount /Cleanup-Image /StartComponentCleanup /ResetBase
  • If there are hotfixes that are pending online, you have to bring them online to Audit mode to clean up, and then recapture the image.
  • If the ISO file is larger than 4.7 gigabytes (GB), use a dual layer DVD to burn the ISO file.
Method 2
  1. Restart from media, and install Windows 7 from media to a disk that attaches other storage controllers (such as SATA).
  2. Press Ctrl+Shift+F3 to enter audit mode during the Out-of-box experience (OOBE) process.
  3. Install the hotfix package, and then restart the computer.
  4. Reseal the system by using the sysprep – generalize – shutdown options.
  5. Capture and move the generalized image to the disk that attaches the NVMe controller.

I hope this helps-



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s