Install Windows 10 with full UEFI Support on a USB-Flash Drive

To be sure you install Windows 10 with UEFI mode instead of Legacy mode you can create two partitions on your usb-flash drive.
This only works on Windows 10 v.1607 or newer versions of Windows 10, yes of course it works on most Linux based dist.… 🙂

 

In Diskpart you can do this two ways.

Choose option one if you need to be able to see the big partition (Partition 1) in earlier Windows versions.
Start Diskpart as admin.

LIST DISK
SELECT DISK <disk number> (your usb-flash drive)
CLEAN
REM === Create the Other files partition. ===
CREATE PARTITION PRIMARY
SHRINK DESIRED=1000
FORMAT QUICK FS=NTFS LABEL=DEPLOY
ASSIGN
REM === Create the Windows PE partition. ===
CREATE PARTITION PRIMARY
FORMAT QUICK FS=FAT32 LABEL=BOOT
ACTIVE
ASSIGN
EXIT

Now it should look like this in highlight.

As you can see in option one, the boot partition has number 2. But remember that it has nothing to do in boot scenarios.

 

Choose option two if you dont need to see the big partition (Partition 1) in earlier Windows versions.
Start Diskpart as admin.

LIST DISK
SELECT DISK <disk number> (your usb-flash drive)
CLEAN
REM === Create the Windows PE partition. ===
CREATE PARTITION PRIMARY SIZE=1000
FORMAT QUICK FS=FAT32 LABEL=BOOT
ASSIGN
ACTIVE
REM === Create the Other files partition. ===
CREATE PARTITION PRIMARY
FORMAT QUICK FS=NTFS LABEL=DEPLOY
ASSIGN
EXIT

Now it should look like this in highlight.

As you can see in option two, the boot partition has number 1. But remember that it has nothing to do in boot scenarios.

Disable windows driverupdates and driversearching

Open registry editor and change this dword value from 1 to 0 like the image below. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching]
“SearchOrderConfig”=dword:00000000

and then you can do this, just to be sure… ??

Click Start, right-click Computer, and then click Properties. (Windows 7)
Click on Start, search for “View advanced system settings”. (Windows 10)
On the System Properties dialog box, click the Hardware tab, and then click Device installation settings.
Select No.


And then Save Changes.

and then this…

Open Group Policy Management Editor(gpedit.msc).
In the navigation pane, go to Computer Configuration\Administrative Templates\System\Internet Communication Management\Internet Communication settings.
In the details pane, double-click Turn off Windows Update device driver searching.
To turn off searching Windows Update, click Enabled.


Click OK to save your settings.

Replace Lockscreen and Wallpaper in Windows 10

Rename your Background/Wallpaper you like to use for your deployment to Wallpaper.jpg and copy the Wallpaper.jpg to your MDT “scripts” folder.

 

Now add Powershell and .NET support to your WinPE image.

 

Then add an Command Line in the TaskSequence like this and copy the text below inside the Command Line like this.
powershell.exe -ExecutionPolicy “ByPass” -Command “Get-ChildItem \”%OSDISK%\Windows\img*.jpg\” -Recurse | % { Copy-Item \”%SCRIPTROOT%\Wallpaper.jpg\” $_.FullName -Force -Verbose }”

 

It is basically replacing all of the built-in Out of box wallpapers with my wallpaper.

PackageAware drivers for your printer are missing and you need a workaround!

This issue occurred when you install the Security update for Windows “Security Update for Windows Print Spooler Components” (3170005).

Download the correct KB for your Windows version in the links below:
Windows 10 1607 supportive technique information 3194798
Windows 7 and Windows Server 2008 R2 supportive technique information 3192403
Windows Server 2012 supportive technique information 3192406

Best practice is to use “PackageAware” drivers for your printers!
Take note that you should not do this workaround because you are lazy and don’t download a new printer driver that is “PackageAware” approved. ??
You find similiar lines inside your *.inf files if your driver is PackageAware approved.
[PrinterPackageInstallation.amd64]
PackageAware=TRUE

Configuring Group Policy to add print servers to allowed list.
Right-click on [START-menu], click [RUN] and type gpedit.msc and then click [OK].

Go to [Printers] and double-click on [Point and Point Restriction]

Set to [Enabled], and then configure these steps below that works for you. Then [Apply] and [OK].

Now in the same [Printers] policy folder double-click on [Package point and print – Approved servers].

Set to [Enabled] and then click on [Show].

Enter your “Fully Qualified Server Name” and then click [OK]. Click [Apply] and [OK] on the [Package Point and print] page.

DONE!

If you are not in a domain just restart your client and control that your setting has taken effect.
If you use a domain then push the policys and control your settings has taken effect.

Media not found “Please reinsert the media (CD, DVD, or USB) needed to complete the deployment.”

If you are using MDT and have created a Offline USB-drive Media for your Windows install, then this screen can appear because of the delay from Device Manager and the hardware scan to find the USB controller when the computer restarts.

 

Hold your horses, there is a workaround… !!

 

The workaround is to put a delay in the Litetouch.wsf script, presented below.
Copy the code below and put it into your Scripts\Litetouch.wsf:
‘//—————————————————————————-
‘// FIX for locating USB Deployment Media
‘//—————————————————————————-
‘Delay search for media 10 seconds.
Wscript.Sleep 10000
‘Device Manager action: Scan for Hardware …
sCmd = “c:\Windows\System32\rundll32.exe cfgmgr32.dll ,CM_Reenumerate_DevNode”
‘Delay for 5 seconds to allow hw to ennumerate
Wscript.Sleep 5000