Hi! The tool install_wim_tweak.exe has an unhide option that shows packages that normally dism wouldn't see. I wonder, how does it do this, and can I do it without using this tool ?
Thanks for the replies! I know now exactly what it does. Easiest with an example: Here is Media-Ocr-Package reg key path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Media-Ocr-Package~31bf3856ad364e35~amd64~sv-SE~10.0.10586.0 It changes Visibility DWORD value from 2 to 1 And Add a new DWORD value named DefVis and set the value to 2 Then it deletes the subkey Owners The package can now be deleted with Dism after one has taken ownership. (Or maybe I should say you must take ownership before you can edit these properties, or run a "Trustedinstaller hack"). Sad part is if you once ran it with parameter /o , using /h will not restore it as it was from the beginning. It only sets visibility back to 2, but leaves all the DefVis values behind, and all Owners subkeys are gone, from all packages! Bad idea to use I think. I have already found a PS script that only goes after the packages that is the target, and leave everything else intact. I'll work on this for a while, thanks for the input!