MSMG ToolKit

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

  1. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,275
    1,735
    120
    I have used MSMG toolkit with 10 indexes at a time with no issues at all.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. kbal

    kbal MDL Junior Member

    Mar 17, 2015
    54
    12
    0
    I've removed everything except Store, but after installing Forza Horizon 3, I can't sign-in in Xbox app (I've installed Xbox app from store), I get Error 0x406.
    I've Googled for solutions, but none of them seem to work.
     
  3. garf02

    garf02 MDL Member

    Sep 15, 2007
    179
    65
    10
    You have removed also the XboxIdentityProvider app, without this component the xbox app not working.
     
  4. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    5,555
    6,691
    180
    Feedback
    when working with: Windows 10 Enterprise 2016 LTSB x64
    I have some doubts that I need to solve so I start with some for example : when removing Windows Components
    Remove Micro$oft Biometrics the Toolkit also remove settings from Services.msc and Gpedit.msc? in doubt myself make all changes because I know that both is joining with Registry directly this situation apply also for Micro$oft Maps, One drive desktop client, Telemetry, Skype, Xbox & Gaming, Windows content delivery manager, Cortana & search app, Windows Embedded features, Geo-Location, Home group, Retail demo offline content, Micro$oft Hyper-V, Micro$oft Internet Explorer UI (in Gpedit.msc have a ton of settings), Windows Store then concluding I ask if I'm correct please answer to me that I thanks in advance :)

    off-topic: sorry for my bad English I'm autodidact ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. dani29m

    dani29m MDL Novice

    Oct 6, 2014
    14
    1
    0
    #1025 dani29m, Jan 5, 2017
    Last edited: Jan 6, 2017
    Hi All! I'm back. Happy to report successful removal and test installation.Big thanks to all of you.Stumbled on some problems but got them resolved.One thing though,by mistake i integrated a wrong driver,is there a way to remove it from the image (i did the whole thing on my old HDD several times and every time took a while so i just don't want to do it one more time honestly)?
    I asked in my previous post about MSMG mentioning about telemetry tweak and somebody to provide a link but there was no response,if providing links is prohibited here or something else that i'm not familiar with please let me know.Thanks again guys :rolleyes:
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    33,030
    53,267
    450
    #1026 Enthousiast, Jan 5, 2017
    Last edited by a moderator: Apr 20, 2017
    Get 3rd party driverinfo from mounted wim:
    Code:
    dism.exe /image:"f:\mount" /Get-Drivers
    
    
    Deployment Image Servicing and Management tool
    Version: 10.0.14393.0
    
    Image Version: 6.1.7601.17514
    
    Obtaining list of 3rd party drivers from the driver store...
    
    Driver packages listing:
    
    Published Name : oem10.inf
    Original File Name : evbd.inf
    Inbox : No
    Class Name : system
    Provider Name : Broadcom Corporation
    Date : 3/26/2012
    Version : 7.2.18.0
    Delete driver from mounted wim:
    Code:
    dism.exe /image:"f:\mount" /Remove-Driver /driver:oem10.inf
    
    
    Deployment Image Servicing and Management tool
    Version: 10.0.14393.0
    
    Image Version: 6.1.7601.17514
    
    Found 1 driver package(s) to remove.
    Removing 1 of 1 - oem10.inf: The driver package was successfully removed.
    The operation completed successfully.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Kenafri

    Kenafri MDL Member

    Jul 22, 2014
    103
    49
    10
    #1027 Kenafri, Jan 6, 2017
    Last edited by a moderator: Apr 20, 2017
    v6.3 Bug Report

    Hi!

    Last ToolKit version (6.3) bug report:


    1) :GetWimIndexInfo section (extra strings/caracters)

    Code:
    set WimIndexName=%WimIndexName:~1,-1%
    set WimIndexDesc=%WimIndexDesc:~1,-1%
    set WimIndexDesc=%WimIndexDesc:(=[%
    set WimIndexDesc=%WimIndexDesc:)=]%
    set WimIndexArch=%WimIndexArch:~1,-1%
    set WimIndexVersion=%WimIndexVersion:~1,-1%
    set WimIndexVersionSPB=%WimIndexVersionSPB:~1,-1%
    set WimIndexEdition=%WimIndexEdition:~1,-1%
    set WimIndexInstalltype=%WimIndexInstalltype:~1,-1%
    set WimIndexDefaultLang=%WimIndexDefaultLang:~1,-11%
    


    2) :IntUpdates section

    -- At line 12552 :
    Code:
    if not "%UpdateType%"=="Additional\WinPE" (
    
    instead of
    Code:
    if not "%UpdateType%"=="WinPE" (
    
    -- At line 12786 (extra parenthesis):
    Code:
    if "%UpdateType%"=="WUSatisfy" (
         if exist "%Updates%\Additional\WU.Satisfy\*%WimIndexArch%*.msu" expand "%Updates%\Additional\WU.Satisfy\*.msu" -F:Win*.cab "%TMP%\Updates\%UpdateType%" >nul
         if exist "%Updates%\Additional\WU.Satisfy\*%WimIndexArch%*.cab" %XCopy% "%Updates%\Additional\WU.Satisfy\*.cab" "%TMP%\Updates\%UpdateType%" >nul
         if exist "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*%WimIndexArch%*.msu" expand "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*.msu" -F:Win*.cab "%TMP%\Updates\%UpdateType%\ProfessionalWMC" >nul
         if exist "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*%WimIndexArch%*.cab" %XCopy% "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*.cab" "%TMP%\Updates\%UpdateType%\ProfessionalWMC" >nul
        )
    )
    
    instead of
    Code:
    if "%UpdateType%"=="WUSatisfy" (
         if exist "%Updates%\Additional\WU.Satisfy\*%WimIndexArch%*.msu" expand "%Updates%\Additional\WU.Satisfy\*.msu" -F:Win*.cab "%TMP%\Updates\%UpdateType%" >nul
         if exist "%Updates%\Additional\WU.Satisfy\*%WimIndexArch%*.cab" %XCopy% "%Updates%\Additional\WU.Satisfy\*.cab" "%TMP%\Updates\%UpdateType%" >nul
         if exist "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*%WimIndexArch%*.msu" expand "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*.msu" -F:Win*.cab "%TMP%\Updates\%UpdateType%\ProfessionalWMC" >nul
         if exist "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*%WimIndexArch%*.cab" %XCopy% "%Updates%\Additional\WU.Satisfy\ProfessionalWMC\*.cab" "%TMP%\Updates\%UpdateType%\ProfessionalWMC" >nul 
    
    )
    
    :tea:
     
  8. sezgin

    sezgin MDL Novice

    Nov 20, 2011
    7
    1
    0
    #1028 sezgin, Jan 7, 2017
    Last edited: Jan 7, 2017
    hi, msmg remove hyper-v package error messsage!

    Removing Microsoft Hyper-V Management PowerShell Package from WIM Image...
    -------------------------------------------------------------------------------

    Deployment Image Servicing and Management tool
    Version: 10.0.14986.1000

    Image Version: 10.0.14393.0

    Processing 1 of 1 - An error occurred - Microsoft-Hyper-V-Management-PowerShell-Package Error: 0x80070005

    Error: 5

    DISM failed. No operation was performed.
    For more information, review the log file.

    The DISM log file can be found at C:\ToolKit-v6.3\Logs\Dism.txt

    -------------------------------------------------------------------------------
    Removing Microsoft Hyper-V Offline Common Package from WIM Image...
    -------------------------------------------------------------------------------

    Deployment Image Servicing and Management tool
    Version: 10.0.14986.1000

    Image Version: 10.0.14393.0

    Processing 1 of 1 - An error occurred - Microsoft-Hyper-V-Offline-Common-Package Error: 0x80070005

    Error: 5

    DISM failed. No operation was performed.
    For more information, review the log file.

    The DISM log file can be found at C:\ToolKit-v6.3\Logs\Dism.txt

    -------------------------------------------------------------------------------
    Removing Microsoft OneCore Hyper-V Hypervisor Package from WIM Image...
    -------------------------------------------------------------------------------

    Deployment Image Servicing and Management tool
    Version: 10.0.14986.1000

    Image Version: 10.0.14393.0

    Processing 1 of 1 - An error occurred - Microsoft-OneCore-HyperV-Hypervisor-Package Error: 0x80070005

    Error: 5

    DISM failed. No operation was performed.
    For more information, review the log file.

    The DISM log file can be found at C:\ToolKit-v6.3\Logs\Dism.txt
     
  9. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    627
    383
    30
    Did you integrate net framework 3.5 first? Then HyperV cannot be removed.

    Cheers.
     
  10. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    5,555
    6,691
    180
    @SupernOOb yep MSMG already advice this before, myself yesterday make my job and remember advice from MSMG so I remove Hyper-V and after I integrate .NET Framework 3.5 whithout problems
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. sezgin

    sezgin MDL Novice

    Nov 20, 2011
    7
    1
    0
    @SupernOOb @Tiger-1

    thanks problem corrected ;)
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,480
    50,228
    340
    #1032 abbodi1406, Jan 9, 2017
    Last edited: Nov 24, 2018
    Clean way prevent Inbox Apps from being deployed (registered) by deleting one registry key prior installing the image
    App files will still remain, but the size is not a real matter

    i.e. for new Defender UWP
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.Windows.SecHealthUI_10.0.14986.1000_neutral_neutral_cw5n1h2txyewy
    or during installation through answer file autounattend.xml
    specialize > Microsoft-Windows-Deployment > RunSynchronousCommand
    launch a batch file to delete the registry key, example:
    Code:
    @echo off
    set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications
    FOR %%i IN (
    MicrosoftEdge
    MicrosoftEdgeDevToolsClient
    AppRep.ChxApp
    BioEnrollment
    Cortana
    ContentDeliveryManager
    HolographicFirstRun
    Microsoft.ECApp
    narratorquickstart
    OOBENetworkCaptivePortal
    OOBENetworkConnectionFlow
    ParentalControls
    PeopleExperienceHost
    PPIProjection
    PrintDialog
    SecHealthUI
    SecondaryTileExperience
    SecureAssessmentBrowser
    XboxGameCallableUI
    Windows.CBS
    holocamera
    holoitemplayerapp
    HoloShell
    Holograms
    ) DO (
      FOR /F %%a IN ('reg query "%key%" /f %%i /k 2^>nul ^| find /i "InboxApplications"') DO IF NOT ERRORLEVEL 1 (reg delete %%a /f 2>nul)
    )
    
    try not to remove importants Apps
     
  13. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,275
    1,735
    120
    I always remove what I want first. If I want to integrate an update, I do that next. Then I apply, and unmount. Then cleanup. Then remount, and integrate what I want. Then apply, unmount, rebuild install.wim.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    33,030
    53,267
    450
    #1034 Enthousiast, Jan 9, 2017
    Last edited: Jan 9, 2017
    What do you mean by "then cleanup"?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    5,555
    6,691
    180
    @abbodi1406 ok then now is very dificult to identify into each CU to know what is updated or no (this for all UWP apps) checking/deleting one by one :rolleyes: ahh!!! if so I think again works with Linux O.S. or FreeBSD; myself already hate all UWP apps now is one disaster!!! M$ want obligate all users with very strong FORCE works with UWP I disagree completely or then returning to Windows XP and all risks still re-coding another time is one shame :sneaky::g:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. slayer9450

    slayer9450 MDL Member

    Aug 3, 2015
    209
    80
    10
    Could one make login script as an unattended way to make sure the inbox keys stay deleted?
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    11,480
    50,228
    340
    Yes...

    or schedule task
     
  18. Feartamixg

    Feartamixg MDL Senior Member

    May 15, 2016
    498
    310
    10
    Would it be possible to exclude a Metro app from removal? I want to keep Sticky Notes, but none of the other apps.

    Or can I add Sticky Notes after removing all the apps?
     
  19. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    627
    383
    30
    At the moment you would have to do it by removing the apps one by one, skipping the metro app you want to preserve.
    As said by MSMG, the GUI version of the toolkit allows for easier selecting those apps you want to remove.
    But it hasn't been released yet, so for now it's kind of a hassle still.

    Adding it afterwards would be possible in theory, but I've never tried it.

    Cheers.
     
  20. Feartamixg

    Feartamixg MDL Senior Member

    May 15, 2016
    498
    310
    10
    Thanks for your reply. I would be happy enough adding it afterwards, preferably in MSMG or after installing Windows.

    If anybody knows how to do this, please post how.