aac Posted June 5, 2024 Posted June 5, 2024 Hi all What is the best debloat script to use for Windows 11 Education 23H2. We will deploy using MECM... thanks in advance
jthompson Posted June 5, 2024 Posted June 5, 2024 Assuming that by debloat you mean removing unwanted AppX packages. I'm using MDT still, but I mount the vanilla image in PowerShell using Mount-WindowsImage. Mount-WindowsImage -ImagePath "E:\DeploymentShare\Operating Systems\Windows 11 Education 23H2\sources\install.wim" -Index 1 -Path "E:\Mounted" Then create an array of names of AppX packages I want to remove. $Apps = @( "*DevHome*" "*FeedbackHub*" "*GamingApp*" "*GetHelp*" "*Getstarted*" "*Microsoft3DViewer*" "*MicrosoftOfficeHub*" "*MixedReality*" "*News*" "*OneNote*" "*Outlook*" "*People*" "*PowerAutomateDesktop*" "*Skype*" "*Solitaire*" "*Todos*" "*Weather*" "*WindowsMaps*" "*Xbox*" "*YourPhone*" ) Run Remove-AppxProvisionedPackage agains each of those. ForEach($App in $Apps){ Get-AppxProvisionedPackage -Path "E:\Mounted" | where {$_.PackageName -like $App} | Remove-AppxProvisionedPackage } Then dismount and save the image. Dismount-WindowsImage -Path "E:\Mounted" -Save So that leaves the 'vanilla' image but with a bunch of unwanted AppX taken out. I initially tried removing the packages in a task sequence, but it wasn't a reliable method due to the inconsistent seqencing of those commands in relation to a user session being started in the background. 1
aac Posted June 7, 2024 Author Posted June 7, 2024 Ended up using this one in the end, seems to work fine in an MECM task sequence... https://github.com/MSEndpointMgr/Windows/blob/master/BuiltInApps/Remove-Appx-AllUsers.ps1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now