UEFI USB Stick boot

uefi

 

 

 

 

 

 

Diskpart
clean
convert gpt (Vet ej om detta steg behövs…)
create partition primary
format fs=fat32 quick
active
assign
exit

bootsect /nt60 X:

copy efi\microsoft\boot upp en nivå… (hela mappen)
Öppna kopiera (öppna med 7-zip) sources\install.wim\1\windows\boot\efi\bootmgfw.efi och lägg den i efi/boot
Döp om bootmgfw.efi till bootx64.efi

Förhindra att man bootar på fel..

 

  • Boot in UEFI mode: To prevent Windows PE from booting in BIOS mode, remove the bootmgr file on the root of the media.
  • Boot in BIOS mode: To prevent Windows PE from booting in UEFI mode, remove the efi folder on the root of the media.

 

 


	

Windows Image Clean up – DISM

Renas ut gamla uppdateringar i WinSxS folder på olika Windows varianter…


Windows 7 – 2008 R2

%windir%\system32\dism.exe /Online /Cleanup-Image /spsuperseded


Windows 8.1 – 2012 R2

Dism.exe /online /Cleanup-Image /StartComponentCleanup
(Tog 2014-04-13cirka 40 min att köra på min Win8.1 I7 ResultatFöre: 23.4 GB Efter: 21.3 2Gb of data removed 🙂 )

Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
”All existing service packs and updates cannot be uninstalled after this command is completed.”
(Tog 2014-04-13 10 min på min 2012 R2… Resultat Före:14.9 GB Efter: 14.6 … not so big deal…)

Dism.exe /online /Cleanup-Image /SPSuperseded
Tar bort möjligheten till att avinstallera ett Service pack… om något sådan nu finns…