Windows 10 - Clean Guide for remove bundle apps and more!

Discussion in 'Windows 10' started by petok, Dec 26, 2017.

  1. petok

    petok MDL Member

    May 4, 2009
    161
    53
    10
    #1 petok, Dec 26, 2017
    Last edited: Jan 14, 2018
    I test more days before and now finalized my instructions how to remove apps from install.wim and remove onedrivesetup installer and stay without bundle apps and work with store app and install what is need apps

    First create this folders I use in D: partition
    Code:
    D:\WIM
    D:\WIM\mount

    Now copy from iso or dvd file install.wim to D:\WIM and rename file to full.wim
    Next open CMD and paste this
    Code:
    Dism /Get-ImageInfo /ImageFile:D:\WIM\full.wim
    Now You see all version in install.wim for now I use index 8 is Pro version and extract just index to clean wim file
    Code:
    dism /Export-Image /SourceImageFile:"D:\WIM\full.wim" /SourceIndex:8 /DestinationImageFile:"D:\WIM\install.wim" /Compress:max /checkintegrity
    Next mount image
    Code:
    dism /Mount-Image /ImageFile:D:\WIM\install.wim /Name:"Windows 10 Pro" /MountDir:D:\WIM\mount
    Create info file for what is need remove from mounted image
    Code:
    Dism /Format:Table /Image:D:\WIM\mount /Get-ProvisionedAppxPackages >D:\ProvisionedAppxPack.txt
    Dism /Format:Table /Image:D:\WIM\mount /Get-Capabilities  >D:\CapabilitiesPack.txt
    This is list I what remove ProvisionedAppxPack
    Code:
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.BingWeather_4.21.2492.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.GetHelp_10.1706.1811.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Getstarted_5.11.1641.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsFeedbackHub_1.1705.2121.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Messaging_2017.815.2052.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Microsoft3DViewer_1.1707.26019.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftOfficeHub_2017.715.118.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MSPaint_2.1709.4027.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Office.OneNote_2015.8366.57611.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.OneConnect_3.1708.2224.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.People_2017.823.2207.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Print3D_1.0.2422.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.SkypeApp_11.18.596.0_neutral_~_kzf8qxf38zg5c
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftStickyNotes_1.8.2.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftSolitaireCollection_3.17.8162.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Windows.Photos_2017.37071.16410.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsAlarms_2017.828.2050.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCamera_2017.727.20.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:microsoft.windowscommunicationsapps_2015.8241.41275.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsMaps_2017.814.2249.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsSoundRecorder_2017.605.2103.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxApp_31.32.16002.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxGameOverlay_1.20.25002.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxIdentityProvider_2017.605.1240.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.ZuneMusic_2019.17063.24021.0_neutral_~_8wekyb3d8bbwe
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.ZuneVideo_2019.17063.24021.0_neutral_~_8wekyb3d8bbwe

    I exclude just this line from remove because Store no working when is removed...
    Code:
    DISM /Image:D:\WIM\mount /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Xbox.TCUI_1.8.24001.0_neutral_~_8wekyb3d8bbwe
    Also I remove this packs
    Code:
    DISM /Image:D:\WIM\mount /Remove-Capability /CapabilityName:App.Support.QuickAssist~~~~0.0.1.0
    DISM /Image:D:\WIM\mount /Remove-Capability /CapabilityName:OneCoreUAP.OneSync~~~~0.0.1.0
    Now remove installation autostart onedrive installer when user is created do not close reg unload go to next step
    Code:
    reg load HKEY_LOCAL_MACHINE\WIM D:\WIM\mount\Users\Default\NTUSER.DAT
    reg delete "HKEY_LOCAL_MACHINE\WIM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /f
    Now stop bundles from system first create this reg file with you name like
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\WIM\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager]
    "ContentDeliveryAllowed"=dword:00000000
    "FeatureManagementEnabled"=dword:00000000
    
    ; OEM Preinstalled Apps
    "OemPreInstalledAppsEnabled"=dword:00000000
    
    ; Preinstalled Apps in Windows 10
    "PreInstalledAppsEnabled"=dword:00000000
    "PreInstalledAppsEverEnabled"=dword:00000000
    
    ; Windows Spotlight
    "RotatingLockScreenEnabled"=dword:00000000
    
    ; Get fun facts, tips, tricks, and moe on your lock screen
    "RotatingLockScreenOverlayEnabled"=dword:00000000
    
    ; Automatically Installing Suggested Apps in Windows 10 Store Apps
    "SilentInstalledAppsEnabled"=dword:00000000
    
    ; Tips, tricks and suggestions while using Windows
    "SoftLandingEnabled"=dword:00000000
    
    ; Occassionally showing app suggestions in Start Menu
    "SystemPaneSuggestionsEnabled"=dword:00000000
    
    ; Subsribed Content status
    "SubscribedContentEnabled"=dword:00000000
    
    ; Get tips, tricks and suggestion as you use Windows
    "SubscribedContent-338389Enabled"=dword:00000000
    
    ; Show me the Windows welcome experience after updates and occasionally when I sign in to highlight what's new and suggested
    "SubscribedContent-310093Enabled"=dword:00000000
    
    ; Show me suggested content in the Settings app
    "SubscribedContent-338393Enabled"=dword:00000000
    
    ; Occasionally show suggestions in Start
    "SubscribedContent-338388Enabled"=dword:00000000
    
    ; My People Suggested Apps
    "SubscribedContent-314563Enabled"=dword:00000000
    
    ; Timeline Suggestions
    "SubscribedContent-353698Enabled"=dword:00000000
    
    ; Lock screen Spotlight - New backgrounds, tips, advertisements etc.
    "SubscribedContent-338387Enabled"=dword:00000000
    
    
    ; Is need more time get info for this channels for now no export to install.wim
    ; "SubscribedContent-202914Enabled"=dword:00000000
    ; "SubscribedContent-280815Enabled"=dword:00000000
    ; "SubscribedContent-280813Enabled"=dword:00000000
    ; "SubscribedContent-280811Enabled"=dword:00000000
    ; "SubscribedContent-280810Enabled"=dword:00000000
    ; "SubscribedContent-310091Enabled"=dword:00000000
    ; "SubscribedContent-314559Enabled"=dword:00000000
    
    
    
    Now start this reg file and all registry is created
    now is time for close registry
    Code:
    reg unload HKEY_LOCAL_MACHINE\WIM
    Now create compile install.wim
    Code:
    dism /Unmount-Image /MountDir:D:\WIM\mount /Commit
    When create install.wim you have big file with trash folder [DELETED] rename install.wim to pre-set.wim and paste this command
    Code:
    dism /Export-Image /SourceImageFile:"D:\WIM\pre-set.wim" /SourceIndex:1 /DestinationImageFile:"D:\WIM\install.wim" /Compress:max /checkintegrity
    
    Now you have install.wim and now replace in usb drive or to iso install.wim and test live or VM.

    This is working good I test 12 days and to today never have problems...
    For other sugestion please wrtite on this post and when have time for test will upgrade this guide.

    Thanks for all who help me for some instructions...
     
  2. petok

    petok MDL Member

    May 4, 2009
    161
    53
    10
    #2 petok, Jan 13, 2018
    Last edited: Jan 20, 2018
    (OP)
    I add description for reg file up with know info keys.

    Next week, I will update post how to remove from install.wim this Microsoft.Xbox.TCUI without destroy Windows Store.
    (STAGE is TEST - now is 6 day for stable without problem but need just some days for final published steps.)

    Good news removed Microsoft.Xbox.TCUI without problems... Now rebuild install.wim for see for clean install do is work done.

    Note!
    Delay will be to 29 January is need more test found some errors in event log and maybe is bugs or some crashing apps.
     
  3. hannubys

    hannubys MDL Novice

    Jun 21, 2007
    16
    2
    0
    Hello, thanks for the guide.
    Can you comment out each registry keys so I know what settings is configured, which one does what ?

    Here is what I know:

    ;OemPreInstalledAppsEnabled = OEM apps
    ;PreInstalledAppsEnabled = Promotional tiles such as Minecraft, Candy Crush, Flipboard etc.
    ;SoftLandingEnabled = Tips
    ;SystemPaneSuggestionsEnabled = App suggestions before Fall Creator Update
    ;RotatingLockScreenEnabled = Spotlight (login background)
    ;SubscribedContent-338388Enabled = App Suggestion on Start (Fall Creator Update)
    ;SubscribedContent-314563Enabled = MyPeople Suggested Apps
    ;SubscribedContent-353698Enabled = Timeline suggestions
     
  4. petok

    petok MDL Member

    May 4, 2009
    161
    53
    10
    I will add comments to reg thanks for suggestion.
     
  5. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    6,638
    1,921
    210
    Maybe I'll try your solution later because at the moment I'd downloaded a Lite version of Windows 10 based on Pro as 32bit for to try and test on an older Lenovo S10-3 Netbook wit 2 Core Atom CPU and 2GB Ram. I had the Home version of 10 (32bit) installed and it runs quite slow. That's why I like to try other solution and came across the Lite version.

    Installation jus finish and my Digital License was taken for activation with no problems. So, will test it now and see how that work.

    Just your solution looks good as well and I maybe try on a different HDD later on!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    6,638
    1,921
    210
    OK, just checked shortly that lite version now.

    The install of w10 Home 32bit was 16.3GB of the Windows DIR, while of that Lite version it's just 8.4GB!!
    That Windows v4 Lite OS is based on 1703 (15063.608).
    While doing a clean install, unlike with the Home Version before, this Lite version found more correct drivers and installed them. The only missing was the Graphic Driver.

    So far, so good! Works a bit faster than on the Home version too! Maybe better for that S10-3 Netbook?!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. petok

    petok MDL Member

    May 4, 2009
    161
    53
    10
    When remove bundles all pre-installed apps from install.wim version 1709 September then you got ~8 GB System clean, but if need Store and Calculator then system be some ~8.1 GB, system is fast and more flexible in work without apps.
     
  8. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    6,638
    1,921
    210
    According to the website I downloaded the Lite from, they also removed all of that Telemetry stuff as well and more things. The also removed the Metro Start Menu and placed the Classic one instead! As I need the 32bit version for that low power Netbook, I didn't found the x86/32bit for 1709, just the 64bit! And I could not place mere RAM inside that Machine, that accepts 2GB only and that's in already! It's the limit of the N550 Atom CPU!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. tmf2

    tmf2 MDL Junior Member

    May 5, 2010
    57
    19
    0
    ;Thanks for the guide but I'm unclear about this step: "Now stop bundles from system first create this reg file with you name like"
    I'm assuming create a reg file and name it whatever I want and place data into the Powershell??
    When I do this I get errors stating assignment expression not valid..... terms not recognized etc.
     
  10. petok

    petok MDL Member

    May 4, 2009
    161
    53
    10
    I write up for reg load parameters into regedit, better for now use cmd and dism parameters for now, I will remake guide for CMD ( fixed packages ) and Powershell ( now working for finalizing steps )
    when is created file ex. Disable_CDM.reg and start file then settings is exported to this key named WIM
    Code:
    [HKEY_LOCAL_MACHINE\WIM\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager]