Jump to content

Recommended Posts

Posted

Hi all

 

What is the best debloat script to use for Windows 11 Education 23H2. We will deploy using MECM...

 

thanks in advance

Posted

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.

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...