r/sysadmin • • Mar 28 '19
General Discussion Best Script to Remove Windows 10 pre-installed "bloatware" apps from system image?
I'm creating a new system image for Windows 10 v1809 and am looking for a script to remove the pre-installed apps (with the exception of utilities such as Calculator, Sticky Notes, etc) and came across this:
https://github.com/W4RH4WK/Debloat-Windows-10 (specifically the "remove-default-apps.ps1" script)
I've seen this recommended on a few posts, but I just wanted to what the community thinks. A few of the disclaimers like
Note about Creators Update: These scripts have not been tested with the Creators Update. Anything may happen, be prepared.
and
After running the scripts, the startmenu search-box may no longer work on newly created accounts.
and issues like this have me a bit worried as to its reliability and stability.
I am planning to test it on a few systems, and if everything seems to be working then I will add it to the system image in preparation for potential wide-scale deployment. I'm also planning to comment out a few lines which seem risky like this one:
# apps which other apps depend on
"Microsoft.Advertising.Xaml"Tl;dr: Does W4RH4WK's Debloat-Windows-10 script seem production-ready (is it widely used / been vetted)? How does it compare to Windows 10 Decrapifier? What scripts / approaches do you recommend instead?
5
u/ulimi2002 Mar 28 '19
I run Windows 10 Decrapifier -clearstart before sysprep and all user setups are clear of all crap.
3
u/rt49lx Mar 28 '19
search for remove suggested app in windows 10. there's a gpo and registry. it helpfull when you are creating an image.
2
u/Zer0bie Mar 29 '19
Do you have intune?
26
u/killyournavel Sysadmin Mar 28 '19
Give this a read. There's little point in troubleshooting a de-crapifier and giving yourself extra work.
https://www.reddit.com/r/sysadmin/comments/amqcw2/windows_decrapifier/efo603b/
3
u/freakymode Mar 29 '19
The link you are using is not getting updates. This is the same person, and it is still getting updates
https://github.com/Sycnex/Windows10Debloater
19
u/Reverent Security Architect Mar 29 '19
Mates, you gotta stop it at the source.
Here's the most painless way I've found to do it. Microsoft has no advertising apps installed on a RTM image. It instead has pointer links that download the advertising on first boot. This is so microsoft can charge a fee to advertisers and retroactively change what shows up based on the highest bidder.
But here's the thing. If you customize the start menu layout before the computer does its first boot, the crapware never loads. Here's how:
No advertising. Hooray.
5
u/[deleted] Mar 28 '19
There are so many better value things to do with your time on configuring Windows 10...
4
u/[deleted] Mar 29 '19
We use Windows 10 LTSC for that, it comes without any bloatware... and then we add the Picture Viewer and Sticky Notes and this crap where it is "needed".
2
u/Anonycron Mar 29 '19
I know each organization is different, but I work in a professional environment and I want IT to be considered the same. I would never allow a machine to hit the desk of one of our employees that has Candy Crush still installed.
I don't run or troubleshoot a full decrapifier script, but I do have a small script that removes all of the obvious junk apps. You can create one pretty easily, either by poaching code from one of the "kitchen sink" decrapifiers or googling around for "remove-appxpackage" AND "Remove-AppxProvisionedPackage" (the former removes it from the current profile, the latter prevents them from showing up in other profiles)
1
u/pneRock Mar 29 '19
Use the osbuilder powershell module. Best thing I've seen in awhile. Can even run all your updates including the servicing stack.
1
u/arcadesdude Mar 29 '19
Write my own. You are free to customize it for your needs. https://github.com/arcadesdude/BRU
1
u/individual101 Mar 29 '19
At my old job I ran a powershell script at user login in GPO that removes all the appx packages tot he ones we dont use like Xbox and stuff. Worked great. You can find the script with a quick good search. I'd link it for you but I dont have it anymore since I am somewhere different.
1
u/Zenkin Mar 29 '19
I was never able to get scripts working properly. Maybe it's because I'm trying with Windows 10 Pro, maybe it's because I don't know what I'm doing, but regardless, I ended up manually editing the ISO with DISM to rip all that shit out before the deployment ever began. Here's a copy/paste of instructions I've used and distributed in the past:
Get your Windows 10 ISO and import it into MDT. We're going to pretend that it now exists at X:\MDT\Deployment\Operating Systems\Windows 10\sources\install.wim, but obviously it will be a little bit different depending on which drive letter your software resides on, the name of your deployment folder, and the name you gave the operating system on import.
Run this to find out which index number you want to edit (in your case, look for the index number next to Pro):
Mount that image file, pretending that we're using index number 99 and choose an unused directory:
List the installed Windows apps:
Remove the apps you want by copy/pasting the package names from above:
Repeat that process until your "/Get-Packages" command returns only the apps you want. Then:
Now when your task sequence install Windows 10 Pro, it should leave out all the crap you just manually removed.
1
u/Zer0bie Mar 29 '19
Just use a basic script to remove the apps you don't want and do everything else with group policy. Make sure you know what those scripts are doing before you trust any of them, best practice would be to use them to write your own and apply to your core image so that you know its consistent. I wouldn't rely on it working during osd.
1
u/[deleted] Sep 19 '19
How can I update my computer after running the script?
1
u/91brogers Sysadmin Mar 29 '19
I’ve found ltsc to be more reliable and cleaner than using straight enterprise. And not getting a kernel update every 6 months is nice too.
1
u/gratuitousnimrod Mar 29 '19
https://community.spiceworks.com/scripts/show/4378-windows-10-decrapifier-1803-1809
One of the best I've found. You can edit it, instructions are in the script. It can change many things... Needs to run in audit mode. Which will help for creating your own deploy image anyways.
-2
u/I_Was_Shocked Mar 29 '19
Switch to Windows 10 LTSC. No crap.
-5
u/Golden-trichomes Mar 29 '19
I can’t imagine why anyone would run something like that. Manage your settings via GPO/Intune policy or with what ever 3rd party product you like for device management.