Hyper-V

HyperV
Update VM-W11-SYSPREP
  1. 
    winget update
    winget update --all
                                
  2. 
    Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*Microsoft.Winget.Source*' } | Remove-AppxPackage
                                
  3. 
    C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:C:\Windows\System32\Sysprep\unattend.xml
                                
Depoly SBX from SYSPREP
  1. Deploy VM from SYSPREP by script.
    • Create new and set all to new folder
    • C:\HyperV\VM-W11-SBX-##\
    • Setup for work or school to create local profile
  2. C:\Scripts\Win11Debloat.ps1"
Update VM-W11-SBX-##
  1. 
    winget update
    winget update --all