As a long time Linux user, I recently got confronted with the Windows group policy editor.
You can use it to disable (blacklist) all the Windows crapware (xbox, etc). Or in the extreme case, whitelist only specific files.
I still prefer a text config file over the GUI, but this thing is insanely powerful.