Die Veröffentlichung von Windows 10 steht kurz bevor. Im Zuge dessen habe ich ein Script geschrieben, das bei Bedarf die vorinstallierten Windows 10-Apps aus dem WIM-Image (install.wim) entfernt. Im Anschluss kann das WIM-Image für die Verteilung mit dem Configuration Manager oder ähnlicher Lösungen genutzt werden.
Bei Starten des Skripts wird WIM-Image automatisch in ein temporäres Verzeichnis gemounted. Im Anschluss werden alle vorinstallierten Apps ausgelesen und im Anschluss deinstalliert.
Update: Version 1.2 Released
- Auswahl Index der .wim-Datei möglich
Update: Version 1.1 Released
- Auswahl von einzelnen Apps möglich
- PackageName durch DisplayName ersetzt
Example: .\removeapps.ps1 -pathtowim c:\10\install.wim
Example: .\removeapps.ps1 -pathtowim c:\10\install.wim -selectapps $true
Youtube:
Download: https://gallery.technet.microsoft.com/Removing-Built-in-apps-65dc387b
Hallo,
leider bekomme ich beim dem PS-Skript immer eine Fehlermeldung. Zur Wartung dieses Windows-Images ist die aktuell Version der DISM erforderlich. DISM wurde über das ADK bereitgestellt Version 10.0.26624 aktuellstes ADK was ich finden konnte. DSIM Version 6.3.9600.16384
Gruß
Timo
Hallo Timo,
Du benötigst zwingend Windows 10 als Betriebssystem auf dem das Script ausgeführt wird. Das Powershell-CMDlet nutzt die lokale Version von DISM.
Grüße
André
Hallo Andre,
perfekt danke für die schnelle Antwort. Ich habe aus auf meinem 2012R2 SCCM versucht – dann mach ich es nochmal unter Windows 10.
Gruß
Timo
Gerne! Sag bitte Bescheid, ob das geklappt hat. ?
Hallo Andre,
läuft perfekt. Vielen Dank für die schnelle Hilfe.
Gruß
Timo
Perfekt!
Mal eine Frage, sehe ich das richtig daß das Script lediglich das erste Image in einer Wim-Datei bearbeitet? Könnte man in das Script keine Index-Auswahl einbauen?
Hi Jens,
ja, das ist richtig. Eine Auswahl des Images werde ich im nächsten Release berücksichtigen.
Grüße
André
Achso, noch etwas…
Kann es sein, daß das Script einen Bug betreffend Windows 8.1 hat? Das Image wird zwar gemounted aber gleich wieder ausgeworfen, ich hab also keine Möglichkeit Apps zum entfernen auszuwählen.
Willst Du ein Windows 8.1-Image anpassen oder ein Windows 10-Image unter Windows 8.1?
Ich habe es gerade nochmal mit einem Windows 8.1-Image probiert und hier funktioniert es einwandfrei.
Vielen Dank! Top Script <3
Ich hab da nochmal nen kleineres Problem… Wenn ich mit dem Script die install.wim bearbeitet habe, bekomme ich, wenn ich mit dieser geänderten install.wim installieren möchte, einen Fehler angezeigt. Man sagt mir dann das der „Benutzerprofildienst“ nicht gestartet werden konnte. Wiederhole ich die Installation mit einem unveränderten Meduim, läuft die Installation fehlerfrei durch. Ich hab das mehrere Male getestet mit unterschiedlichen Medien und habe auch das Script mehrmals neu laufen lassen, daran kanns also nicht liegen. Was läuft hier falsch?
Puuh, noch nichts davon gehört. Hast Du eine genauere Fehlerbeschreibung und ggf. den genauen Wortlaut der Fehlermeldung? Ggf. kannst Du mir auch noch etwas mehr zur Umgebung erzählen?
Ich werds heut Abend nochmal versuchen und nen Foto vom Screen machen.
Also, wenn die Installation fast durch ist kommt ja der Part, wo normalerweise die Apps eingerichtet/installiert werden. Genau dort bekomm ich dann die Fehlermeldung „Benutzerprofildienst kann nicht gestartet werden“. Als ob sich das Setup-Programm da dran verschluckt, das keine Apps zum installieren da sind.
Wenn ich die Installation dann mit einer unbearbeiteten Wim-Datei wiederhole, läuft alles glatt.
So, ich hab mal ein paar Bilder gemacht vom Installationsablauf, wie kann man hier Bilder einstellen?
Bitte irgendwo hochladen und hierher verlinken. Danke!
So, ich hab die Bilder mal mit WinRar zusammengepackt und auf meinen OneDrive-Account hochgeladen: http://1drv.ms/1HDvvJh
Thanks for a great tool.
I however got some issues.
I have captured a new W10Px64 v1511 build 10586 image that I want to remove the apps from.
I’m running the script on the same W10 version in a PS Administrator elevated prompt.
Is i perhaps some of the new apps that have been added that’s causing a problem?
Mounting Windows-Image… WIN10X64CB-2015-11-19.wim
Please wait…
Remove the following Built-in apps:
Delete: Microsoft.3DBuilder
Delete: Microsoft.Appconnector
Delete: Microsoft.BingFinance
Delete: Microsoft.BingNews
Delete: Microsoft.BingSports
Delete: Microsoft.BingWeather
Delete: Microsoft.Getstarted
Delete: Microsoft.MicrosoftOfficeHub
Removing Built-in apps failed…
Error: The system cannot find the file specified.
Its works with a original VLSC W10Px64 v1511 build 10586 install.wim so I´m going to capture a new image based on that instead. So ignore what I wrote before 😉
Thank you! i’ll ignore it. 🙂
Pingback: Windows 10 - Built-In Apps entfernen - Eric Berg
Pingback: groeby.net | Windows 10 – Vorgeschlagene App-Links aus dem Start entfernen
Thanks Andre for the script.
I ran on Windows 10 Enterprise but I got the bellow error. I capture my image SCCM 2012 R2 SP1
Please wait…
Remove the following Built-in apps:
Removing Built-in apps failed…
Error: An error occurred. No operation was performed.
Verify that DISM is installed properly in the image, and then try the operation again.
Any idea?
Hi Ryan,
did you started the script under Windows 10? Please verify, that the index number of the image is 1.
Hi Andre,
Oops…My index is 2. I change the script accordingly. It’s all good now Andre.
Thanks for the quick reply. Have a great one. Follow your post.
Perfect! You’re welcome!
Hi Andre,
The script work perfect. Installation went great. Sysprep by SCCM okay. But when I deploy, sign in I got this error „The User Profile Service service failed the sign-in“ „User Profile cannot be loaded“. I did manual repaire „Default“ profile (copy from another windows 10 PC and pasted in this newly deploy PC @ C:\Users\) it’s work. Do you have anyone encounter this error? i’m thinking of create TS step but i’m new to SCCM, dont know how to accomplish this… can you shade me some light?
Thanks Andrew.
Hello Andrew,
You can check to see if your install image was good. I suspect there is something wrong with your installation.
I once fixed in the pass with Windows 8.1, would be the same for Windows 10. It will take few minutes to an hour, it varies.
To scan if you see any error: Dism /Online /Cleanup-Image /ScanHealth
To fix using local install.wim file: Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /limitaccess
To fix using network install.wim file: Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:”\\networksrouce\install.wim”:1 /limitaccess
Let us know if that work for you.
Ryan Chau
Work Perfectly. Thank Ryan! You the man!
Ist es mit diesem Skript möglich die integrierten Apps Microsoft.WindowsFeedback & Windows.ContactSupport ebenfalls zu entfernen?
Danke & Gruss
Andy
Diese Information wäre wirklich sehr nützlich, daumen hoch für das Skript.
Die Feedback-App kann darüber nicht entfernt werden.
Hallo,
gibt es überhaupt eine möglichkeit dafür?
Hallo,
funktioniert hier nicht (Test auf 2 Maschinen, eine neue VM und ein physischer Host von W8.1 migriert):
Removing Built-in apps failed…
Error: Das angegebene Modul wurde nicht gefunden.
Problem ist wahrscheinlich, dass Get-AppxProvisionedPackage -path „Pfad\zur\wimDatei“ derzeit nicht funktioniert.
Kennt jemand eine Lösung?
Was genau hast Du denn versucht? Wenn Du Apps aus einer Windows 10 WIM entfernen willst, dann brauchst Du zwingend auch ein Windows 10 als Hostsystem.
I am running 1151 windows 10 and it keeps failing at untiling 3d builder, any ideas?
In running this against a MDT syspreped and captured win 10.wim running with the -selectapps $true
I receive the following msg:
Removing built-in apps failed…
Error: The system cannot find the file specified
then quits. I then must umount the image using DISM.
Hi Keith,
check the index-number of the wim-file.
for example: \removeapps.ps1 -pathtowim c:\10\install.wim -select $true -index 2
Super Script. Funktioniert mit Windows 10 64-bit Education Version 1603 perfekt. Danke
Hallo
Leider erhalte ich folgende Fehlermeldung:
WARNING: Unable to find installed app Microsoft.Messaging
Transcript stopped, output file is C:\Users\xxx\AppData\Local\Temp\RemoveApps.log
Windows 10 Version: SW_DVD5_WIN_ENT_10_1511.2_64BIT_English_MLF_X20-99544
Gruss Raffi
Kannst Du mir ein paar Infos geben? Ist das .wim im Vorfeld bearbeitet worden, wo hast Du es heruntergeladen etc. pp. Ich kann das Problem nicht nachstellen. Hier gehts sogar mit der neuesten TP.
Ja das WIM wurde im Vorfeld bearbeitet worde.. -> Startmenu angepasst, cmtrace in system32 kopiert, benutzerdefinierte Anmeldeicons..
Das OS habe ich unter https://www.microsoft.com/Licensing/servicecenter/default.aspx heruntergeladen…
Gruss Raffi
WIll there be an update to this for any new apps MS has bundled in with the latest release of Win10 Anniversary Edition?
Pingback: SCCM Community Meeting in Munich 2016-09-16 | Crankdesk…
Hallo Andrè
Bekomme keine Auswahl mit den Angaben aus dem Script -selectapps $true,
dies bei der neuen Version Windows 10 Enterprise 2016 LTSB. Folgende Meldung wird ausgegeben. Jemand das auch schon probiert. Wim File Orginal, Windwows 10 Ent. 2016 LTSB aus VolumeLicence heruntergeladen
Mounting Windows-Image… c:\10\install.wim
please wait
Remove the following Built-in apps
Dismount-WIndowsImage
habs gerade gesehen, windows enterprise 2016 ltsb hat von haus aus keine apps
Sry
Hi,
Index Nr ist 1.
Das Skript startet und spuckt nach kurzer Zeit folgenden Fehler heraus:
Please wait…
Remove the following Built-in apps:
Delete: Microsofot. 3DBuilder
Removing Built-in apps failed…
Error: Das System kann die angegebene Datei nicht finden.
Woran könnte das liegen? Ich versuche dies bei Win10 Enterprise, Build 1511.
Gruß,
Max
Das deinstallieren hat wunderbar geklappt!
Nun soll ich aber, in einer mit dieser .wim installierten Windows 10 Enterprise, die Notizen wieder hinzufügen (Microsoft.MicrosoftStickyNotes_1.0.136.0_x64__8wekyb3d8bbwe). ich habe mir eine „Originale“ install.wim gemountet und mir aus \Program Files\WindowsApps\ die 5 Ordner heraus kopiert.
Aber wie bekomme ich die jetzt wieder installiert? Wäre dankbar für jede Hilfe 😉
Hey,
gibt es eine Erklärung, warum nicht alle Windows Apps über die install.wim entfernt werden können?
Beispiel CandyCrush. Vielleicht ein blödes Beispiel, da Non MS App. Allerdings entfernt das Script „nur“ ca 20 Apps. Es gibt ein weiteres Script auf github im Debloat Package, welches weit mehr als 50 entfernt.
Mich würde der grund hierfür interessieren, ist es lediglich in diesem Skript nicht implementiert oder nicht möglich?
Hi Jan! Die Apps wie z.B. CandyCrush werden nach der Installation installiert. Das kannst Du auch einfach per Gruppenrichtlinie (Microsoft Consumer Experience deaktivieren) blocken. CandyCrush ist kein Provisioned-AppxPackage.
Hi André.
I’m having a problem using your script. I have the latest Windows 10 downloaded from the Microsoft Volume website (1607 – OS Build 14393.693). It’s not activated (yet – I don’t know if this makes any difference). If I run the script I get this:
Start: 3/13/2017 11:16:35 AM
Create temporary directory…
Temporary directory: C:\Users\mysuperadminaccount\AppData\Local\Temp\rm21eeb4.jl0
Mounting Windows-Image… c:\temp\install.wim
Please wait…
Remove the following Built-in apps:
Do you really want to delete the following App: Microsoft.3DBuilder (Y/N): y
Delete: Microsoft.3DBuilder
Do you really want to delete the following App: Microsoft.BingWeather (Y/N): y
Delete: Microsoft.BingWeather
Removing Built-in apps failed…
Error: The system cannot find the file specified.
So it removes 3D Builder but then it stops at BingWeather…
I did not remove the applications before, I just installed Windows, some runtimes, language packs, updated it, captured the image and that’s about it…
Any idea what might be wrong?
Vielen Dank.
When mounting an image mine has been stuck on please wait for quite a while. Is this normal?
bonjour
en lancent le script j’ai ca comme erreur
Create temporary directory…
Temporary directory: C:\Users\Onizuka\AppData\Local\Temp\uo3xsp0e.cdx
Mounting Windows-Image…
Please wait…
Mounting Windows-Image failed…
Error: L’argument est Null ou vide. Indiquez un argument qui n’est pas Null ou vide et réessayez.
„PS C:\Windows\system32> Dism /Get-Mountedwiminfo
Outil Gestion et maintenance des images de déploiement
Version : 10.0.10586.0
Images montées :
Aucune image montée n’a été trouvée.
L’opération a réussi. “
besoins d’aides svp 🙂
Hallo,
ich möchte das Script gerne benutzen um die Apps aus dem Windows 1703 install.wim zu entfernen. Dies führe ich auch auf einem Windows 10 Rechner durch. Das wim file wird gemounted dann erhalte ich jedoch eine Fehlermeldung:
Start: 17.08.2017 11:36:13
Create temporary directory…
Temporary directory: C:\Users\User\AppData\Local\Temp\fbwtcoml.t52
Mounting Windows-Image… C:\image\install.wim
Please wait…
Remove the following Built-in apps:
Removing Built-in apps failed…
Error: Fehler bei „Get-AppxProvisionedPackage“. Fehlercode: 0x80004005
PS C:\>
Die ExecutionPolicy der Powershell habe ich bereits auf Bypass gesetzt, leider ohne Erfolg.
Hast du einen Tipp für mich woran es liegen kann? Google hilft mir irgendwie nicht weiter.
Vielen Dank im voraus.
Beste Grüße
William
The image is not dismounted if it encounters and error
I try to run this script on a Windows 10 1709 image and the apps to delete come up blank. I can keep inputting ’n‘ but it will never end or error out. Is there a way around this? Thanks!
Start: 11/6/2017 12:25:14 PM
Create temporary directory…
Temporary directory: C:\mount
Mounting Windows-Image… .\install.wim
Please wait…
Remove the following Built-in apps:
Do you really want to delete the following App: (Y/N): y
Delete:
Do you really want to delete the following App: (Y/N): y
Delete:
Do you really want to delete the following App: (Y/N): n
Skipped:
Do you really want to delete the following App: (Y/N): n
Skipped:
Do you really want to delete the following App: (Y/N): n
Skipped:
Es funktioniert unter Windows 10 1803, genial!
Kleine Rückfrage, vielleicht hat es schon jm gelöst:
Mein Setup:
Inplace Upgrade von 1607 Enterprise -> 1803 via SCCM TS mit angepasstem wim file.
Mein „Problem“:
Frisch installierte PCs haben im Startmenü unter „meistverwendete“ noch die Leichen über nicht installierte Applikationen. Mir ist klar das ich dies via GPO ausblenden könnte, ich würde das Problem jedoch gerne lösen und nicht kosmetisch überpinseln 🙂
Hallo!
Erst mal: DANKE für das Script!
Ich bin mit Win 10, 1809 Education unterwegs (ich weiß, (noch) nicht offiziell supported vom Script).
Die MS-ISO habe ich mit 7-Zip entpackt. Dann habe ich aus der install.wim zunächst die EDU-Version extrahiert, so dass ich eine install.wim habe, in der nur noch die EDU-Version enthalten ist. [ dism /Export-Image /SourceImageFile:“.\1\install.wim“ /SourceIndex:1 /DestinationImageFile:“.\2\install.wim“ /Compress:max ].
Gegen diese install.wim habe ich dann das Script laufen lassen, es läuft ohne Fehler durch. Danach habe ich mit IMGBURN wieder eine ISO erstellt und damit die Installation einer VM versucht. Kurz vor Ende scheitert diese Installation jedoch mit folgendem Fehler „Die Installation konnte nicht abgeschlossen werden. Starten Sie die Installation erneut, um Windows auf diesem Computer zu installieren“.
Hat dazu evtl. jemand eine Idee? Ich nutze die WhiteList aus dem Script, so dass nur die Apps Microsoft.StorePurchaseApp, Microsoft.WindowsCalculator und Microsoft.WindowsStore nicht entfernt werden. Muss da unter 1809 evtl. zwingend noch eine andere App drinbleiben damit es funktioniert?
Danke!
TJ
Hi, i can’t understand what i doing wrong,
I’m trying win 10.1809 can you explain more detail how to mounting wim in Video, you only show ven everything started
Hello – First, I love this script, I’ve used it in ever version of WIndows 10 through 1809. It’s the only thing I know of that works! Thank you!
Speaking of build 1809, I follow the same process as I did for every other build of Win10 but this time when I wanted to exclude the following apps using the script they were not removed even though the script showed that they were, any idea on how to fix this?
Solitare
Mail (Communications Apps)
Messaging
Movies & TV (Zune Video)
One Note
XBOX
Your Phone
Thank you,
Mike
Hi all, I have been using this application for previous Windows 10 builds 1709, 1803 and they worked perfectly. When I used it on 1809 the message came back saying the app was removed however once the OS loads and you go to the start menu the app still shows. But if you click on it, you are taken to the „Windows Store“
If that is how its expected to run on this build I am good with that
Ran script on against a custom 1809 .wim on a 1809 Windows 10 computers. Script runs fine and removes everything until the very end when I get this error:
Please wait…
Error: The directory could not be completely unmounted. This is usually due to applications that still have files opened within the mount directory. Close these files and unmount again to complete the unmount process.
Any idea what’s causing this and how to fix?
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
PS C:\Users\Superadmin> cd\
PS C:\> cd 10
PS C:\10> dir
Directory: C:\10
Mode LastWriteTime Length Name
—- ————- —— —-
-a—- 3/10/2019 12:08 PM 4382364083 install.wim
-a—- 3/10/2019 12:40 PM 45 removeapps.ps1
PS C:\10> .\removeapps.ps1 -pathtowim F:\10\install.wim
The script failed due to call depth overflow.
+ CategoryInfo : InvalidOperation: (0:Int32) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CallDepthOverflow
PS C:\10>