These steps can be performed on any windows 10/server 2012/server 2016 OS. Using this solution you can remove unwanted apps from windows 10 1809,1909,2004,2009 version of windows 10. Post that you can use these Wim files in SCCM to prepare OSD task sequence.
An ISO can also be created using this WIM for windows 10 OS deployment without unwanted apps like: solitaire, xbox, bing apps etc…
· Create 2 new folders on your C: drive called
1: Win10Install
2: Mounted_Image
· You need to download required version of windows 10 (1809/1909/2009) the ISO from MSDN/Microsoft site.
· On win10/server2016, double click your installation media (.iso) and copy all the files to a folder named c:\Win10Install.
· Open Powershell privileged/admin rights and run this command.
Mount-WindowsImage -ImagePath "c:\Win10Install\Sources\Install.wim" -Index 1 -Path "c:\Mounted_image"
This command will mount the image in “mounted_image” folder
· Copy the below Given script to a notepad file and save it as “c:\temp\removeapps-from_1909.ps1”
#--------------------------------------------------------------------------------------------
#prepared this for windows 10 version 1909/2009 By Coeminds.com
$apps=@(
"9E2F88E3.Twitter"
"ClearChannelRadioDigital.iHeartRadio"
"Flipboard.Flipboard"
"king.com.CandyCrushSodaSaga"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingWeather"
"Microsoft.CommsPhone"
"Microsoft.Getstarted"
"Microsoft.Messaging"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.Office.OneNote"
"Microsoft.Office.Sway"
"Microsoft.People"
"Microsoft.SkypeApp"
"Microsoft.Windows.Phone"
#"Microsoft.Windows.Photos"
#"Microsoft.WindowsAlarms"
#"Microsoft.WindowsCalculator"
#"Microsoft.WindowsCamera"
#"Microsoft.WindowsMaps"
"Microsoft.WindowsPhone"
#"Microsoft.WindowsSoundRecorder"
"Microsoft.XboxApp"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
"microsoft.windowscommunicationsapps"
"Microsoft.MinecraftUWP"
"ShazamEntertainmentLtd.Shazam"
"Microsoft.MixedReality.Portal"
"Microsoft.Wallet"
"Microsoft.Xbox.TCUI"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxGamingOverlay"
"Microsoft.XboxGameOverlay"
)
foreach ($app in $apps) {
Get-AppXProvisionedPackage -path c:\mounted_image | where DisplayName -EQ $app | Remove-AppxProvisionedPackage
}
#----------------------------------------------------------------------------------------------------------------
· Run the created .ps1 file on Powershell command prompt opened two step back.
c:\temp\removeapps-from_1909.ps1
· This PS1 file contains all app which need to remove. you can choose and comment them with # which you dont want to remove.
· To test if the packages were removed you could run the following:
Get-AppxProvisionedPackage -Path c:\Mounted_Image
Note: If you want to remove mores apps, just make a note of display name of apps and add them in the script “c:\temp\removeapps-from_1909.ps1”. Re-run the script.
· Now that your .wim is in better shape it's time to button it back up. Run the following script to dismount and save the image
Dismount-WindowsImage -Path c:\Mounted_Image -Save
· After dismounting, you can use the windows 10 content available in the folder “c:\Win10Install”. You can also convert this back to ISO using any tool like imageburn as well.
This article also offer the answer of these quires: Windows 10 1903 remove built-in apps all users, removing built-in apps from windows 10 wim-file with powershell, windows 10 1909 iso download microsoft, windows 10 1809 remove built-in apps all users, dism delete index from wim, windows 10 1909 iso google drive, powershell script to remove windows 10 apps for all users, remove built-in apps windows 10
Comments