Skip to main content

Posts

Showing posts with the label automation

Add and Remove Drivers to an offline Windows Image or WinPE

Add and Remove Drivers to an offline Windows Image Link  https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-and-remove-drivers-to-an-offline-windows-image You can use DISM to install or remove driver (.inf) files in an offline Windows or WinPE image. You can either add or remove the drivers directly by using the command prompt, or apply an unattended answer file to a mounted .wim, .ffu, .vhd, or .vhdx file. When you use DISM to install a device driver to an offline image, the device driver is added to the driver store in the offline image. When the image is booted, Plug and Play (PnP) runs and associates the drivers in the store to the corresponding devices on the computer.   Note To add drivers to a Windows 10 image offline, you must use a technician computer running Windows 10, Windows Server 2016, or Windows Preinstallation Environment (WinPE) for Windows 10. Driver signature verification may fail when you add a driver to a Windows 10 im...

CreatePartitions-BIOS.txt

rem == CreatePartitions-BIOS.txt == rem == These commands are used with DiskPart to rem    create three partitions rem    for a BIOS/MBR-based computer. rem    Adjust the partition sizes to fill the drive rem    as necessary. == select disk 0 clean rem == 1. System partition ====================== create partition primary size=100 format quick fs=ntfs label="System" assign letter="S" active rem == 2. Windows partition ===================== rem ==    a. Create the Windows partition ======= create partition primary rem ==    b. Create space for the recovery tools rem       ** Update this size to match the size of rem          the recovery tools (winre.wim) rem          plus some free space. shrink minimum=500 rem ==    c. Prepare the Windows partition ====== format quick fs=ntfs label="Windows" assign letter="W" rem == 3. Recov...

CreatePartitions-UEFI.txt

rem == CreatePartitions-UEFI.txt == rem == These commands are used with DiskPart to rem    create four partitions rem    for a UEFI/GPT-based PC. rem    Adjust the partition sizes to fill the drive rem    as necessary. == select disk 0 clean convert gpt rem == 1. System partition ========================= create partition efi size=100 rem    ** NOTE: For Advanced Format 4Kn drives, rem               change this value to size = 260 ** format quick fs=fat32 label="System" assign letter="S" rem == 2. Microsoft Reserved (MSR) partition ======= create partition msr size=16 rem == 3. Windows partition ======================== rem ==    a. Create the Windows partition ========== create partition primary rem ==    b. Create space for the recovery tools === rem       ** Update this size to match the size of rem          t...