Trying to remove packages from ltsb 2016

Discussion in 'Windows 10' started by David555, Jan 30, 2018.

  1. David555

    David555 MDL Junior Member

    Dec 12, 2017
    85
    23
    0
    2016 Ltsb

    Trying to remove hyper v packages around 60 of them, from an online image, using tweak.exe

    But after reboot immersive panel doesn't work.

    Does anyone have list of packages safe to remove from 2016 ltsb Or know way of removing hyper v?

    Thanks
     
  2. Grywald

    Grywald MDL Novice

    Jun 25, 2014
    14
    1
    0
    In fact, yes you can remove them. But there is a risk to broke something. With dism the task is hard. Because at the first you need to have the correct list (about Hyper-V) :
    Code:
    reg load HKLM\WIM_Software D:\IsoWindows10\windows\system32\config\software
    REM pause
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-ClientEdition-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-ClientEdition-WOW64-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Hypervisor-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Hypervisor-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Common-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Common-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Common-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-servercommon-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Online-Services-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Online-Services-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-base-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-base-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-ds-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-minkernel-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-termsrv-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-termsrv-servercommon-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Add "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Services-Package~31bf3856ad364e35~amd64~~10.0.16299.15" /v "Visibility" /t REG_DWORD /d 1 /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-ClientEdition-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-ClientEdition-WOW64-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Hypervisor-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Hypervisor-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Common-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Common-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Common-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-servercommon-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Offline-Core-Group-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Online-Services-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Online-Services-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-base-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-base-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-ds-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-minkernel-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-termsrv-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Package-termsrv-servercommon-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    Reg Delete "HKLM\WIM_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Hyper-V-Services-Package~31bf3856ad364e35~amd64~~10.0.16299.15\Owners" /f
    REM [########----------------------------------------------------------------########]
    Reg Unload HKLM\WIM_Software
    REM pause
    REM [########----------------------------------------------------------------########]
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Package-termsrv-servercommon-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Package-termsrv-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Online-Services-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Online-Services-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Offline-Core-Group-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Offline-Core-Group-servercommon-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Offline-Core-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Offline-Core-Group-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Offline-Common-vm-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Offline-Common-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Offline-Common-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Hypervisor-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Hypervisor-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Package-base-onecore-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Package-base-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Package-ds-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Package-minkernel-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-Services-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-ClientEdition-WOW64-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    Dism /Image:D:\IsoWindows10 /Remove-Package /Packagename:Microsoft-Hyper-V-ClientEdition-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    That's way to follow if you want to avoid the jungle sic.... Because if you don't respect the order you will get plenty of the same kind of trouble : "Error: 0x800f0805".
    I will add the second list (about HyperV) because the post is limited (even put as code)