Tag Archives: Bootable USB

How to install a fresh Windows 10 booted from UEFI secure boot using a bootable USB

Problem:

Most of Windows machines are delivered with a limited Windows version and unnecessary preinstalled software.

You want to format the hard drive and install a fresh Windows that can be booted from UEFI secure boot to improve machine performance and stability.

You have a 8Gb USB stick and an ISO file of Windows 10, version 1909.

Solution:

Step 1: Backup your machine and create an USB recovery by entering “Create a recovery drive” text to the search box on the task bar and follow the instructions.

Step 2: Create a bootable USB with Windows installation files.

Right click Windows logo, click Command Prompt (Admin).
Enter diskpart.exe, press Enter.
DISKPART> list disk
DISKPART> select disk 1 -- the USB disk should be selected, the number may be different in your machine.
DISKPART> clean
DISKPART> create partition primary size=1024
DISKPART> select partition 1
DISKPART> active
DISKPART> format quick fs=fat32
DISKPART> assign
DISKPART> create partition primary
DISKPART> select partition 2
DISKPART> format quick fs=ntfs
DISKPART> assign
DISKPART> exit
Double click on the ISO file of Windows 10, version 1909 to create a virtual drive.
xcopy f:\sources\boot.wim d:\sources\ /s /e -- where f: the virtual drive and d: the USB fat32 partition.
We copied only the f:\sources\boot.wim file to d:\sources\.
robocopy f:\ d:\ /IS /S /XD sources -- where f: the virtual drive and d: the USB fat32 partition.
We copied everything from f:\ to d:\ except the sources folder.
xcopy f:* e:\ /s /e -- where f: the virtual drive and e: the USB ntfs partition.

Step 3: Install Windows.

  1.  Plug the USB to a machine.
  2. For a Dell laptop, power on the machine, press F12 until a one-time boot up menu appears.
  3. For a Sony VAIO laptop, power off the machine, then press the Assist button to enter VAIOCare.
  4. Select the option to boot the machine from the USB (you may need to enable Boot from USB in BIOS).
  5. Follow the instructions to install Windows (Windows partition size: 717445Mb for DellPrecision, 262789Mb for DellXPS).
  6. You can delete all the partitions, including MRP (Microsoft Reserved Partition – this is just a reserved partition for Windows later use if needed), ESP (EFI System Partition – this is where UEFI firmware files are stored to boot Windows), WINRETOOLS (Windows Recovery Environment (WinRE) Tools – this is where files for repairing or recovering Windows are stored), and PBR image (this is where original the manufacture Windows installation file  are stored) because you already created an USB recovery in the Step 1.

Step 4: Configure Windows for Developer’s need.

  1. Change Computer Name and Time Zone, activate Windows, turn off System Restore, enable Remote Desktop, turn on Network discovery and file sharing by clicking on Network icon on the left side of Explorer, install Dell Wireless 1820A 1830 WiFi Driver, turn off BitLocker (manage-bde -status, manage-bde -off C:).
  2. Configure auto logon (netplwiz), disable hibernation (powercfg.exe /h off), configure Power options (Hard disk, Sleep).
  3. Turn the following Windows features on: .NET 3.5, ASP.NET 4.8, Internet Information Services, Telnet Client.
  4. Install Hyper-V, create an external Virtual Switch for Internet access.
  5. Configure secure protocols using IIS Crypto GUI.
  6. Install Total Commander, Remote Desktop Connection Manager, PuTTY 0.7.3, WinSCP 5.17, Zoom.
  7. Install Firefox, MPC-HC.1.7.13.
  8. Install MS Office 2007 SP3 (Display >> Scale and layout: 125% for DellPrecision, 175% for DellXPS), MS Project 2016, MS Visio 2016, MS SQL Server 2008 R2, Visual Studio 2015, Adobe Acrobat Pro DC v15.8, Adobe Photoshop CC 2015, TortoiseSVN 1.13.1
  9. Install Python 3.6.8, TensorFlow, Keras
  10. Create VPN Connection.

Go to Control Panel >> Network and Sharing Center >> Change adapter settings >> Right click >> VPN Connection’s Properties >> Select Networking tab:
1. Disable Internet Protocol Version 6 (TCP/IPv6).
2. Select Internet Protocol Version 4 (TCP/IPv4) >> Properties >> Advanced… >> select IP Settings tab: Uncheck Use default gateway on remote network option.