1. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Add the below lines to the RemovePackages.txt

    Code:
    Microsoft-Windows-TestRoot-and-FlightSigning-Package
    Microsoft-Windows-TestRoot-and-FlightSigning-WOW64-Package
     
  2. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    Has anyone managed to remove ShellExperienceHost with MSMG without breaking the Metro Start UI and the taskbar? When I try to do it with NSudo as TrustedInstaller + CBSEnum then only one package gets removed and ShellExperienceHost keeps running in the background. I even changed its Repository attribute - set it to IsInbox=0 and then uninstalled it "successfully" (or so said PowerShell) using Get/Remove AppX PowerShell command, before trying to remove it entirely using NSudo and CBSEnum. However neither PowerShell uninstall nor the CBSEnum managed to prevent the .exe from loading and if you manually delete the folder, then say bye bye to normal functionality of your taskbar and Store Apps.
     
  3. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    I think some system apps like ShellExperienceHost can only be removed on online systems and not from offline images, but I haven't tried it yet.

     
  4. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,743
    1,010
    60
    I removed Windows Defender / Security Center. But upon every startup, I get this Event ID 214/319:
    'Microsoft.Windows.SecHealthUI_cw5n1h2txyewy' install failed for Phoenix. Error: 'The system cannot find the file specified.' (0.0337709 seconds)

    How can I stop that event or having the OS to try to look for that file/service?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    I was playing around with this ToolKit and default I noticed that under the option to install Metro Apps - where it shows the list of those able to be installed - the number '8' starts to install numerous Metro Apps as opposed to going back to the previous screen like it's suppose to.

    I corrected this in "mine," but that's probably something you will want to fix since one can't enter that menu and then exit it without closing out of the program itself.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Do you get a Popup Dialog at every startup or it's just showing up in the Event Viewer?

    Using DISM method to remove any package won't completely removes its traces, sometimes its registry settings/tasks/file/folders will be left-out and also in WinSxS folder a backup of the component files do will be left-out sometimes and this an cause errors in SFC /Scannow or in Event viewer, but it's not harmful.

    But, so far I haven't got popup errors when any components removed and I'm using the OS with almost all the components removed and it's working fine here.

     
  7. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    This is why any time you remove something that's so entwined in the OS like the new Defender Antivirus, it's important to also MANUALLY run 2 commands by opening a separate elevated command-prompt:

    1) dism /Image:X:ToolKit\Mount\Install /Cleanup-Image /ScanHealth
    2) dism /Image:X:ToolKit\Mount\Install /Cleanup-Image /StartComponentCleanup /ResetBase
    **where "X:ToolKit" is the path to the ToolKit**

    Do not rely on the ToolKit when you commit the changes, and you ideally should run those commands after you've removed everything you want and BEFORE you go to install anything.

    I primarily use a PShell script that automatically removes everything I want, and adds what else I want; however, it always performs a full image cleanup before it begins installing anything. A while back I did not include the above commands in my PShell script and relied on them only during the commit and dismount of the wims and noticed certain annoying issues upon running build regardless, so I had the script perform them after the removal process instead and had no further issues.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    For Which Windows 10 OS TH/TH2/RS1/RS2 Menu it's giving error coz I haven't tested the Integrate Metro Apps for TH1/TH2 and RS2 as I didn't add the App files.

    Anyway will check with the menu command and fix the errors.

     
  9. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    #1949 GodHand, May 2, 2017
    Last edited: May 2, 2017
    RS3. I did not try to add any Metro Apps but when I hit the '8' to go back, it installed a handful of them instead of going back to the previous screen.

    *EDIT*

    I had incorrectly put RS2 as the OS I was using it on which was incorrect. It was RS3 that the aforementioned issue showed up in.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. naveedabbas555

    naveedabbas555 MDL Novice

    Apr 10, 2017
    11
    3
    0
    #1950 naveedabbas555, May 2, 2017
    Last edited: May 13, 2017
    Deleted
     
  11. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    Learn to read something in its entirety

    The ToolKit does a ComponentCleanup and ResetBase when you commit and dismount, hence why I said "Do not rely on the ToolKit..." and to "MANUALLY" run those commands, along with ScanHealth, after you've deleted everything you want with the ToolKit and BEFORE you integrate anything.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Windows 10 User

    Windows 10 User MDL Guru

    Feb 2, 2017
    2,006
    122
    90
    Sorry, but how can I do that? And I have to do that after I mount the image? Do you know if I can remove (and not disable) Cortana and still be able to use Search? Also, will I have any problems with Windows Defender after removing it the normal way with this tool or should I use additional PowerShell commands?
     
  13. naveedabbas555

    naveedabbas555 MDL Novice

    Apr 10, 2017
    11
    3
    0
    #1953 naveedabbas555, May 2, 2017
    Last edited: May 13, 2017
    Deleted
     
  14. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,743
    1,010
    60
    oh no chief, no popups at all, I just happened to take a look at my Event Log viewer and saw it there and thought maybe there's a way to tell the OS to not even look for it to have it try to start it up and prevent this background log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,743
    1,010
    60
    so let me get this straight, I mount the ISO, remove whatever stuff I want using the MSMG Toolkit, then NOT apply the changes yet? and instead, run those commands first/ then apply the changes and create the ISO?

    also, what are the commands to enter to do the same cleanup for the uninstalled apps as I get an error in the Event Viewer that:

    App Container profile failed with error 0x800700B7 because it was unable to register the AppContainer SID.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    You always remove prior to integrating. This has been known well before any sort of GUI tools came out.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    #1958 GodHand, May 2, 2017
    Last edited: May 2, 2017
    1) Use ToolKit to remove whatever you want
    2) Run the commands I posted with everything still mounted (you can put both in a notepad file and rename the extension to .cmd so you just have to click it). Just open an elevated command-prompt next to the ToolKit screen and exit out of it when it's finished.
    3) It ideally should tell you no corruption was found and the componentcleanup and resetbase were successful
    4) Continue with ToolKit to integrate whatever you want and use it to commit the changes and create your ISO

    I'd recommend making a .cmd file, putting it in the ToolKit's root folder and just clicking to make it easy, especially if you fiddle with images frequently.

    dism /Image:C:\ToolKit-v7.1\Mount\Install /Cleanup-Image /ScanHealth
    dism /Image:C:\ToolKit-v7.1\Mount\Install /Cleanup-Image /StartComponentCleanup /ResetBase
    pause
    exit

    You can change the mounted image location to whatever path yours is located at, but I'm sure most put it at the root of a drive.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,743
    1,010
    60
    Thanks a lot man! you're a life savor!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    6,414
    15,608
    210
    Cortana and Search are like Siamese twins they cannot be separated or removed individually, either you can remove both or Disable Cortana and use Search.

    Windows Defender can be removed safely without any issues for any of these OS's W8.1 to W10 RS2.

    But for RS3, I haven't added the support yet.