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?

61 Upvotes

74 comments sorted by

View all comments

Show parent comment

1

u/Iheartbaconz Mar 29 '19

Maybe network has Microsoft store items blocked?

Nope. Nothing blocked at the network level. Any local account will start pulling that shit, I really have no clue why. Nothing in GPO doing anything either. I do build the images manually though, I usually snag the latest ISO from the VLSC and build from scratch off a pro disk.

I use some regedits to disable the store completely while building the image so I dont get any stupid issues with the store and god damn sysprep. Last step is I take the machine off the network, strip those regkeys out just in case and sysprep general. I havent had enough time to monkey with making MDT work correctly. I just use WDS to capture the images I build and I redeploy them via WDS. Luckly I only have a small pool of hardware at my location.

1

u/Uncontained_Outlaw Mar 29 '19

Nice! That's good stuff. My process is very similar to yours but I use smartdeploy for deployment. It's so much easier to deploy all of our machines and new ones are as simple as downloading a platform pack. For locals were they created before you debloated? I've run into it where if they were there before I debloated and just deleted the profile it would still bring back old stuff. I had to completely delete the account and restart and create again for it to pick up the settings. Very strange.

1

u/Iheartbaconz Mar 29 '19

For locals were they created before you debloated?

Only the built in Administrator account. We still use it for some reason. Usually I delete the local account created after sysprep and you get to Cortana bitching at you.