When you are prompted with Let's start with a region or Get going fast, or Personalize, or Customize Settings, or Setup Windows, press CTRL+SHIFT+F3 to switch to audit mode.
DiskPart
Select Disk 0
List Part
Select Part x (recovery)
Delete Partition Override
List Part
Select Part y (windows)
Extend
List Part
Exit
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs
https://www.ashampoo.com/en-us/antispy-for-windows-10
Get-AppxPackage -AllUsers | Remove-AppxPackage
Get-AppxProvisionedPackage -online | Remove-AppxProvisionedPackage –online
Download unattend.xml
file to c:\
before continue.
Remember to change the password from the file.
c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /unattend:c:\unattend.xml /reboot
In virtual machine mode
c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /mode:vm /unattend:c:\unattend.xml /reboot
irm https://massgrave.dev/get | iex
slmgr.vbs /ipk KEY
slmgr /skms kms.technet24.ir
slmgr /ato
Improves the performance of managed applications.
cd\
cd Windows\Microsoft.NET\Framework\v4 (and press tab)
ngen executequeueditems
Clears unnecessary files from your computer's hard disk.
cleanmgr /d c: /verylowdisk /autoclean
Cleans unused files from the Side by Side component store.
dism /online /cleanup-image /startcomponentcleanup /resetbase
Saves space on the Windows image by running the operating system and other system files from compressed files. This strategy reduces the number of IOPS required for storage with cache and has a negligible impact on the CPU.
compact /compactos:always
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f
powercfg /h off
sdelete64 -z c:
slmgr.vbs /ckms
clears the name of the KMS server.
slmgr.vbs /ckhc
disables KMS host caching.
ipconfig /release
releases the IP address.