MSMG ToolKit

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

  1. mhussain

    mhussain MDL Member

    Oct 1, 2012
    184
    50
    10
    @MSMG
    would it be possible to remove everything to do with the Emoji panel?
    I just utterley dispize that acursid panel.
    I being blind find that useless
     
  2. Ace2

    Ace2 MDL Addicted

    Oct 10, 2014
    523
    320
    30
    Windows Core 10.0.19041.508 x64 updated to 10.0.19041.541. [windows10.0-kb4577063-x64.cab]

    Restored components can be removed, when removing them from within Win10XPE desktop mode.

    1.
    Frist i removed all WindowsApps with PowerShell: [MUST BE DONE!!!]
    Code:
    Get-AppXProvisionedPackage -Path C:\mount | Remove-AppxProvisionedPackage -Path C:\mount
    then i installed the OS.

    After setup i updated to 10.0.19041.541 with [windows10.0-kb4577063-x64.cab], restarted Pc to let updates fully install, booting back into desktop mode.

    2.
    Removed restored components using:

    Win10XPE_x64_Build_10.0.19041.508.iso [Win10XPE building tools from The Oven]

    NSudoLG.cmd
    Code:
    cd /d "%~dp0"
    NSudoLG -U:T -P:E ToolKitHelper.cmd
    ToolKitHelper.cmd
    Code:
    cd /d "%~dp0"
    ToolKitHelper.exe X:\ AllComponents
    Code:
    MSMG ToolKit Commandline Helper
    Version: 1.0.3780.0
    
    Image Version: 10.0.19041.541
    
    Component : AdobeFlashForWindows
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : InternetExplorer
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : FirstLogonAnimation
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : SnippingTool
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : SpeechRecognition
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : WindowsPhotoViewer
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : CEIP_SQM
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : FaceRecognition
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : KernelDebugging
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : LocationService
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : PicturePassword
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : PinEnrollment
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : UnifiedTelemetryClient
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WiFiNetworkManager
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsErrorReporting
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsInsiderHub
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : HomeGroup
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : RemoteAssistance
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : DeviceLockdown
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : EaseOfAccessThemes
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : EasyTransfer
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : FileHistory
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : SecurityCenter
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : SystemRestore
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsBackup
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsFirewall
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsSubsystemForLinux
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsToGo
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : AADBrokerPlugin
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : BioEnrollment
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : CallingShellApp
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : CBSPreview
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : ContentDeliveryManager
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : ECApp
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : EdgeDevToolsClient
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : Edge
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : FileExplorer
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : LockApp
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : MapControl
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : NarratorQuickStart
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : ParentalControls
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : PeopleExperienceHost
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    Component : RetailDemoContent
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : SettingSync
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : SkypeORTC
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : SmartScreen
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : Win32WebViewHost
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsDefender
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsMixedReality
    
    Removing Package files...
    Modifying Package Registry...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : WindowsReaderPDF
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : XboxGameCallableUI
    
    Removing Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    Component : WindowsStore
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    Component : XboxApp
    
    Removing Package files...
    Modifying Package files...
    Loading Image Registry...
    Modifying Package Registry...
    Unloading Image Registry...
    
    The operation completed successfully.
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    
    The specified component has already been removed...
    Press any key to continue . . .

    notes:
    sfc /scannow did restore the components again.
    I was able to remove the restored components after sfc /scannow restored them.
    I was able to install windows10.0-kb4577063-x64.cab again, after using Win10XPE method for removal of restored components.
    1 was able to remove restored components from target OS on D:\ drive using ToolKitHelper from C:\ drive desktop mode.
     
  3. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    6,212
    7,533
    210
  4. Tomasz Rudnicki

    Tomasz Rudnicki MDL Novice

    May 16, 2019
    27
    1
    0
    i already was there and i did not found any help with my questions
     
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    35,591
    59,669
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Tomasz Rudnicki

    Tomasz Rudnicki MDL Novice

    May 16, 2019
    27
    1
    0
    thank You Enthousiast this one is clear now
     
  7. onlinegill

    onlinegill MDL Novice

    Sep 26, 2020
    3
    0
    0
    Hello All,
    I would like add / install applications such office 2019 home and business etc. before creating custom ISO file is it possible ?
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    35,591
    59,669
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. onlinegill

    onlinegill MDL Novice

    Sep 26, 2020
    3
    0
    0
    #16550 onlinegill, Sep 26, 2020
    Last edited: Sep 26, 2020
    Thank You Enthousiast i will look into and how about another applications like adobe reader etc. basically i want to create a preinstalled apps iso file which will help me to reduce time on installing multiple systems. i do not want to use imaging tools due to deferent systems / models.
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    35,591
    59,669
    450
    Installing stuff in audit mode is standard msft and when properly done, it can be deployed on multiple systems.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. onlinegill

    onlinegill MDL Novice

    Sep 26, 2020
    3
    0
    0
    Ok after setting up everything in audit mode can I create ISO file ? because i think audit mode will create Wim file right ?
     
  12. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    35,591
    59,669
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    650
    423
    30
    #16554 Supern00b, Sep 27, 2020
    Last edited: Sep 27, 2020
    @MSMG
    Some feedback on the latest Toolkit 10.5:

    - Image 1809 LTSC spanish x86
    - Integrated some features
    - Integrated the recommended updates, especially the CU 1457
    - Removed components with Toolkithelper method (list) including defender and smartscreen
    - From a console, integrated the latest preview CU windows10.0-kb4577069-x86.msu
    - Cleanup + resetbase and applied changes to image.

    The process was successful, especially the issue with defender removal on x86 images seems to have been resolved. Yeah!
    Although it left me with a couple of observations:
    - It takes more time now, the CU has to be integrated twice, once to bring the image up to the build that toolkithelper supports for removing components, and once more to integrate the latest preview CU after removing components.
    - Current method may need an updated Toolkit for each new CU?
    - Can we integrate the 1457 CU into a source image and use that as a base image from now on? But if the Toolkit is updated for a more recent CU, that base image + 1457 CU won't be valid anymore for use with the Toolkit?

    Edit:
    The x86 image was OK, but applying the same procedure to the x64 image, the latest preview CU cannot be added:
    Code:
    M:\msmg\CUnew\windows10.0-kb4577069-x64.msu: An error occurred applying the Unattend.xml file from the .msu package.
    For more information, review the log file.
    Error: 0x80070002
    Error: 2
    The system cannot find the file specified.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    Press any key to continue . . .
    And the log entry shows this:
    Code:
    Info                  CBS    FLOW: Enter Installation Stage: Closure Analysis, Current Operation Stage: Installing
    2020-09-26 20:17:47, Error                 CSI    00000b97 (F) STATUS_OBJECT_NAME_NOT_FOUND #4666968# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey(flg = (AllowAccessDenied), key = {provider=NULL, handle=0, name= ("null")}, da = (KEY_READ|KEY_WOW64_64KEY), oa = @0xb75ca7ac68->OBJECT_ATTRIBUTES {s:48; rd:NULL; on:[276]'\Registry\Machine\{bf1a281b-ad7b-4476-ac95-f47682990ce7}M:/msmg/mount/install/Windows/System32/config/COMPONENTS\DerivedData\VersionedIndex\10.0.17763.1450 (WinBuild.160101.0800)\ComponentFamilies\amd64_windows-[gle=0xd0000034]
    2020-09-26 20:17:47, Error                 CSI    defender-events.resources_31bf3856ad364e35_es-es_bfdb7d752952c540'; a:(OBJ_CASE_INSENSITIVE)}, disp = Unmapped disposition: 1554491976)[gle=0xd0000034]
    2020-09-26 20:17:47, Error                 CSI    00000b98@2020/9/27:01:17:47.03 (F) onecore\base\wcp\sil\ntsystem.cpp(5348): Error STATUS_OBJECT_NAME_NOT_FOUND originated in function Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey expression: (null)
    [gle=0x80004005]
    2020-09-26 20:17:47, Info                  CBS    Added C:\Windows\Logs\DISM\dism.log to WER report.
    2020-09-26 20:17:47, Info                  CBS    Not able to add pending.xml to offline WER report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
    2020-09-26 20:17:47, Error                 CSI    00000b99 (F) STATUS_OBJECT_NAME_NOT_FOUND #4666967# from Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey(flg = 0, key = {provider=NULL, handle=0, name= ("null")}, da = (KEY_READ|KEY_WOW64_64KEY), oa = @0xb75ca7ac68->OBJECT_ATTRIBUTES {s:48; rd:NULL; on:[276]'\Registry\Machine\{bf1a281b-ad7b-4476-ac95-f47682990ce7}M:/msmg/mount/install/Windows/System32/config/COMPONENTS\DerivedData\VersionedIndex\10.0.17763.1450 (WinBuild.160101.0800)\ComponentFamilies\amd64_windows-defender-events.re[gle=0xd0000034]
    2020-09-26 20:17:47, Error                 CSI    sources_31bf3856ad364e35_es-es_bfdb7d752952c540'; a:(OBJ_CASE_INSENSITIVE)}, disp = Unmapped disposition: 1554492972)[gle=0xd0000034]
    2020-09-26 20:17:47, Error                 CSI    00000b9a@2020/9/27:01:17:47.125 (F) onecore\base\wcp\sil\ntsystem.cpp(5348): Error STATUS_OBJECT_NAME_NOT_FOUND originated in function Windows::Rtl::SystemImplementation::DirectRegistryProvider::SysOpenKey expression: (null)
    Again pointing to Defender being the issue, strange enough this time it's the x64 image.

    Edit 2: I also tried only adding the recommended CU and not the preview CU, but I got the same error at the cleanup state.

    Steps to reproduce the issue:
    - Image 1809 LTSC x64 spanish
    - Integrate 457 recommended CU
    - Remove defender with toolkit method
    - Cleanup and resetbase, and get an error halfway through.

    When not removing Defender from the x64 image, everything completes OK and I can even integrate the preview CU after removing the other components.

    Cheers.
     
  14. Dusktilldawn

    Dusktilldawn MDL Novice

    Oct 24, 2009
    46
    10
    0
    #16555 Dusktilldawn, Sep 27, 2020
    Last edited: Sep 27, 2020
    Hello .master & brothers

    According to read me file on win8.1 update: if I follow to order:
    I have to enable "Microsoft .NET Framework 3.5 Feature" after integrate Optional> Integrate the required Windows Custom Features

    [H] - <Optional> Integrate the required Windows Custom Features using [Integrate->Windows Custom Features] menu.
    - <Optional> Customize the Image using [Customize] menu.
    [J] - Cleanup the Source Image using [Apply->Cleanup Source Images] menu.
    [K] - Integrate Microsoft .NET Framework 3.5 Feature using [Integrate->Windows Features->Microsoft .NET Framework 3.5) menu.
    [L] - Apply & Save Changes to Source Images using [Apply->Apply & Save Changes to Source Images] menu.
    [M] - Re-Build Source Images using [Apply->Re-Build Source Images] menu.

    my question is: there are .NET Framework 3.5 Update files ( in step H) come from first before the enable (in step K) .NET Framework 3.5!!
    have I though wrong? or is there any suggestion
    thanks in advance to all
     
  15. windows builder

    windows builder MDL Guru

    Sep 13, 2017
    2,030
    1,328
    90
    No red and blue please
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. rorewe4314

    rorewe4314 MDL Junior Member

    Jun 18, 2020
    70
    17
    0
    MSMG, I have disabled Windows defender and I also need to remove the system tray icon for all users, how can I do this?

    p.s
    Registry Tweaks
     
  17. kovadimka

    kovadimka MDL Novice

    Mar 19, 2020
    6
    2
    0
    #16558 kovadimka, Sep 27, 2020
    Last edited: Sep 27, 2020
    You may put the following registry file:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    "SecurityHealth"=-
    
    into Custom\Registry\<OS>\<Arch> folder and use [5]Customize ->[7]Import Custom Registry Setting from Registry File
     
  18. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    Edge was removed while installing the OS and a new version was installed later, will check without the Edge later.

    Think there should any file related program installed for Open With to work, in my case VSCode was installed.

     
  19. MSMG

    MSMG MDL Developer

    Jul 15, 2011
    5,430
    11,396
    180
    The DISM can't work with more than one image at once and Using WimLib if you only removing the components or modifying the registry then you can use the WimLib update method without mounting the Wim images.

    As Enthousiast said you can service one image and upgrade the edition to next level and append the changes to the image but there's no catch if there is any pending operations then it will give errors while edition upgrade.

    Just add the Containers-ApplicationGuard-Package to the RemovePkgs.txt and then use the Remove Windows Components using Package List -> DISM Method.