Windows 11 Pro bereinigen/debloat

Post Reply
André Schüttel
Posts: 276
Joined: 08. Jul 2009, 13:37
Location: Leipzig
Contact:

Windows 11 Pro bereinigen/debloat

Post by André Schüttel » 07. Nov 2022, 12:01

Guten Tag,

hat jemand ein Paket, um Windows 11 zu säubern?

Oder eine Anleitung, wie man Windows 11 vor der Verteilung säubern kann?

Grüße aus Leipzig.
EMPIRUM v21.0.3; RemoteControl (2nd NIC); ESM v12.0.1.1174; SQL Server 2014 Std; Windows Server 2016 Std

User avatar
bjoern.anger
Posts: 3
Joined: 13. Oct 2009, 08:41
Location: OWL
Contact:

Re: Windows 11 Pro bereinigen/debloat

Post by bjoern.anger » 16. Nov 2022, 07:41

Moin,

was genau möchten sie bereinigen?
Ich hab mir ein Script gebastelt um aus der install.wim ein paar Apps raus zu schmeißen. Irgendwelchen Einstellungen lassen wir bewusst und machen das später per GPO oder mit einem Paket. Das passt für uns, kann woanders aber auch ganz anders sein.

Code: Select all

cls
$iso = ".\install.wim"
Write-Host $iso

Write-Host "Winows Editionen entfernen"
Write-Host ""
Write-Host "Vorher:"
Get-WindowsImage -ImagePath $iso | ft ImageIndex, ImageName

$value = Get-WindowsImage -ImagePath $iso | sort ImageIndex | select -Last 1
$maxindex = $value.ImageIndex

for ($i=$maxindex; $i -gt 0; $i--)
{
    $image = Get-WindowsImage -ImagePath $iso -Index $i
    if ($image.ImageName -ne "Windows $$ Pro") {Remove-WindowsImage -ImagePath $iso -Index $i -CheckIntegrity}
}

Write-Host "Nachher:"
Get-WindowsImage -ImagePath $iso | ft ImageIndex, ImageName

Write-Host "- - - - -"

md WindowsImage
Write-Host "Mount ISO"
Mount-WindowsImage -ImagePath $iso -Index 1 -Path .\WindowsImage

Write-Host "- - - - -"

Write-Host "APPs entfernen"
$apps = 
{Microsoft.GetHelp},
{Microsoft.Getstarted},
{Microsoft.Microsoft3DViewer},
{Microsoft.MicrosoftOfficeHub},
{Microsoft.MicrosoftSolitaireCollection},
{Microsoft.MicrosoftStickyNotes},
{Microsoft.MixedReality.Portal},
{Microsoft.Office.OneNote},
{Microsoft.People},
{Microsoft.SkypeApp},
{Microsoft.WindowsFeedbackHub},
{Microsoft.Xbox.TCUI},
{Microsoft.XboxApp},
{Microsoft.XboxGameOverlay},
{Microsoft.XboxGamingOverlay},
{Microsoft.XboxIdentityProvider},
{Microsoft.XboxSpeechToTextOverlay},
{Microsoft.YourPhone},
{Microsoft.ZuneMusic},
{Microsoft.ZuneVideo},
{Microsoft.Wallet},
{microsoft.windowscommunicationsapps}

foreach ($a in $apps)
{
    $selected = Get-AppxProvisionedPackage -Path .\WindowsImage | Where -filterScript {$_.DisplayName -like $a}
    Remove-AppxProvisionedPackage -Path .\WindowsImage -PackageName $selected.PackageName
}

Get-AppxProvisionedPackage -Path .\WindowsImage | FT DisplayName, PackageName

#---
Write-Host "IE entfernen"
Remove-WindowsCapability -Path .\WindowsImage -Name "Browser.InternetExplorer~~~~0.0.11.0"

Write-Host "Dismount ISO"
Dismount-WindowsImage -Path .\WindowsImage -Save

rd .\WindowsImage

Write-Host "ISO-File " $iso
Write-Host "FERTIG""
Beste Grüße

André Schüttel
Posts: 276
Joined: 08. Jul 2009, 13:37
Location: Leipzig
Contact:

Re: Windows 11 Pro bereinigen/debloat

Post by André Schüttel » 17. Nov 2022, 07:15

Guten Tag,

das sieht schon gut aus. Werden die Pakete für alle Nutzer entfernt, da das in der install.wim stattfindet?
EMPIRUM v21.0.3; RemoteControl (2nd NIC); ESM v12.0.1.1174; SQL Server 2014 Std; Windows Server 2016 Std

User avatar
bjoern.anger
Posts: 3
Joined: 13. Oct 2009, 08:41
Location: OWL
Contact:

Re: Windows 11 Pro bereinigen/debloat

Post by bjoern.anger » 17. Nov 2022, 07:51

Moin,

ja, das ist für alle Benutzer.
Und die Pakete kommen mit einem FeatureUpdate auch nicht wieder zurück. (Stand jetzt :-) Wer weiß was sie sich M$ noch ausdenkt.) Leider führt das Entfernen der Apps nicht dazu das die Datei kleiner wird. Aber ein GB mehr oder weniger ist i.d.R. ja kein Problem mehr.

André Schüttel
Posts: 276
Joined: 08. Jul 2009, 13:37
Location: Leipzig
Contact:

Re: Windows 11 Pro bereinigen/debloat

Post by André Schüttel » 17. Nov 2022, 10:40

Bekommt man OneDrive auch runter?
EMPIRUM v21.0.3; RemoteControl (2nd NIC); ESM v12.0.1.1174; SQL Server 2014 Std; Windows Server 2016 Std

User avatar
bjoern.anger
Posts: 3
Joined: 13. Oct 2009, 08:41
Location: OWL
Contact:

Re: Windows 11 Pro bereinigen/debloat

Post by bjoern.anger » 17. Nov 2022, 12:00

Das ist bei uns nicht notwendig.
Aber es gibt ein paar Anleitungen wie das wohl funktionieren soll. Hab ich noch nie ausprobiert.
-> https://www.google.com/search?q=remove+ ... nstall.wim

Post Reply

Return to “Suche”

Who is online

Users browsing this forum: No registered users and 1 guest