MSMG ToolKit

Discussion in 'MDL Projects and Applications' started by MSMG, Nov 21, 2013.

  1. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    Don't use that it won't work, I had posted another method later check this post

    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-761#post-1597447

     
  2. mhussain

    mhussain MDL Junior Member

    Oct 1, 2012
    74
    8
    0
    hey @MSMG,
    remove apps.txt
    where do i get the list of apps that is removable from the image?
    like the connect app?
    i'm discussing the system apps etc,
    Majid
     
  3. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    This method is removing Windows Apps using the DISM /Remove-ProvisionedAppxPackage, it won't work for System Apps.

    For System Apps which have Package names, you can use DISM /Remove-Package method but it requires modifying few registry keys before running the command.

    The current Toolkit component removal (ToolKitHelper.exe) don't use these two above methods but instead uses the manual method.

     
  4. aruiz

    aruiz MDL Novice

    Mar 6, 2018
    16
    0
    0
    Yes, I always used start.cmd
     
  5. Ace2

    Ace2 MDL Senior Member

    Oct 10, 2014
    437
    227
    10
    Windows-Defender.cmd
    Code:
    @Echo Off
    
    reg load HKLM\S C:\mount\Windows\System32\Config\SOFTWARE
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-AM-Default-Definitions-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-AM-Default-Definitions-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-AM-Default-Definitions-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-AppLayer-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-AppLayer-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-AppLayer-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-ApplicationGuard-Inbox-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-ApplicationGuard-Inbox-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-ApplicationGuard-Inbox-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-amcore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-amcore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-amcore-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Core-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Group-Policy-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Group-Policy-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Group-Policy-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-amcore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-amcore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-amcore-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-onecore-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-MDM-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-MDM-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-MDM-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Powershell-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Powershell-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Management-Powershell-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Nis-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v Visibility /t REG_DWORD /d 1 /f
    reg add "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Nis-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1" /v DefVis /t REG_DWORD /d 2 /f
    reg delete "HKLM\S\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Nis-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1\Owners" /f
    
    reg unload HKLM\S
    Pause
    
    dism /image:C:\mount /Remove-Package /PackageName:Windows-Defender-AM-Default-Definitions-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    dism /image:C:\mount /Remove-Package /PackageName:Windows-Defender-AppLayer-Group-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    dism /image:C:\mount /Remove-Package /PackageName:Windows-Defender-ApplicationGuard-Inbox-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    dism /image:C:\mount /Remove-Package /PackageName:Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    dism /image:C:\mount /Remove-Package /PackageName:Windows-Defender-Group-Policy-Package~31bf3856ad364e35~amd64~~10.0.18362.1
    Pause

    @MSMG thanks for posting these commands, now i can replace install-wim-tweak.exe with dism.:cool:
     
  6. marioalpha

    marioalpha MDL Novice

    Apr 26, 2017
    22
    4
    0
    I have tried and tried many times, but I can't do step 6> 1
    when adding updates i always get errors with sfc / scannow.

    • MSMG ToolKit : 9.9 with ToolKitHelper.exe 1.0.3132.0
    • x64 ISO : 18363.418.CCCOMA_X64FRE_IT-IT_DV9.ISO
    • x64 SSU : windows10.0-kb4552152-x64_705fda69935538eab5054d9d616e1761742816ec.msu
    • x64 CU : windows10.0-kb4556799-x64_9de920d8738612baa81a751b003ff98f0ce7156b.msu
    • x64 FlPlayer : AMD64-all-windows10.0-kb4537759-x64_ea293539b86301f3c89abbae0d4cc70060d00848.msu
    • x64 NetCU : windows10.0-kb4552931-x64_2db4f6d9a62833406875986aae69351f82f3ca2b.msu
    Extract ISO (1 > 3)
    Select source (1 > 1) (only mount image)
    Apply updates (3 > 4 > Y > 2 > 1 > 2)
    Cleanup (6 > 1)
    Apply changes to image (6 > 2 > Y)
    Rebuild (6 > 1)
    Make ISO (7 > 1)

    I still don't understand where I'm wrong o_O:confused:
     

    Attached Files:

    • CBS.txt
      File size:
      377.4 KB
      Views:
      3
  7. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    Then check if there is any AV interference with the Toolkit or Mount Directory.

    or

     
  8. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    Welcome, the credit goes to MDL user lite8 for providing this trick.

     
  9. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    Check skipping the cleanup step and see if SFC error occurs, in many previous CU's there were SFC scan bugs which were fixed at some point.

     
  10. Windows 10 User

    Windows 10 User MDL Expert

    Feb 2, 2017
    1,037
    65
    60
    #15250 Windows 10 User, May 19, 2020
    Last edited: May 19, 2020
    Thanks. After removing the Cortana component (not to be confused with the Cortana app) some items showed up with the wrong icons in the Start Menu search and after typing some words I got no results. I thought one can only have these issues after removing the Cortana component, not the Cortana app.
     
  11. marioalpha

    marioalpha MDL Novice

    Apr 26, 2017
    22
    4
    0
    if skipping the cleanup step i have no errors, this happened to me also with KB4549951

    So am I not the one who misses the steps?

    I kept doing it because I read many who succeed without problems, how is it possible?
     
  12. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    In v2004 there are no two separate things like Cortana Component and Cortana App, only Cortana App is present.

    The ToolKitHelper method used for removing Cortana App needs further tweaking to fix the Start Menu search and that's why I did gave a temporary solution to use DISM's remove provisioned apps command to remove the Cortana App until a fix is implemented in ToolKitHelper.

     
  13. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    May be the latest CU might have brought back the SFC bug again which the Microsoft had fixed earlier.

     
  14. Windows 10 User

    Windows 10 User MDL Expert

    Feb 2, 2017
    1,037
    65
    60
    #15254 Windows 10 User, May 19, 2020
    Last edited: May 19, 2020
    Weird, because I was able to remove the Cortana component (what I call it) with NTLite and I still had the Cortana app. And by using the DISM method to remove the Cortana app would it break the Start Menu search?
     
  15. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    4,181
    9,136
    150
    In W10 v2004 the Cortana UI and Search has been separated.

    The Search part is now a System App (Microsoft.Windows.Search_cw5n1h2txyewy) and is present in <Windows\SystemApps> folder.

    The Cortana App which is the Cortana UI is now normal Provisioned Appx Package (Microsoft.549981C3F5F10) and is present in <Program Files\WindowsApps> folder.

     
  16. raptorddd

    raptorddd MDL Junior Member

    Aug 17, 2019
    68
    18
    0
    i been away for few months. i was getting power offs randomly i still need to send motherboard to warrantt. so i have no PC LOL. question does using toolkit now still reinstalls rwmoved apps when windows update is used.?
     
  17. Windows 10 User

    Windows 10 User MDL Expert

    Feb 2, 2017
    1,037
    65
    60
    #15257 Windows 10 User, May 19, 2020
    Last edited: May 19, 2020
    If they're separated in 2004, then why removing Cortana messes up Start Menu search?

    I didn't know removing the Cortana app could break File Explorer search. Could you tell me exactly what happens in File Explorer search after removing the Cortana app? I removed the app with CCleaner and I had no problems.
     
  18. ceo54

    ceo54 MDL Senior Member

    Aug 13, 2015
    340
    58
    10

    Thanks MSMG. Just one question, how do I set the ISO label and filename on the fly like the toolkit does ?? The script already sets the two values and won't ask when it's run.
     
  19. almubdea1

    almubdea1 MDL Novice

    Apr 30, 2012
    15
    3
    0
    hi
    Iknow that you are doing great work spending a lot of your time
    if you can add with removing all accept so I can keep one of the list and remove the rest
    thanks to you
     
    You can remove apps of your choice via going to msmg project & edit removeappslist.txt in lists directory inside bin folder.