Download Windows_8.1_Debloat.ps1 from this Github repository.
Open a PowerShell terminal with administrative privileges.
Before running the script, you may need to allow unsigned scripts. This can be done using the command Set-ExecutionPolicy -ExecutionPolicy Unrestricted . Be aware that this policy is a security risk.
You can then run the script by locating it and typing Windows_8.1_Debloat.ps1. It takes a few minutes to run.
After running the script, you can recover your execution policy by typing Set-ExecutionPolicy -ExecutionPolicy Default .
Finally, you can restart your computer by running shutdown /r /t 0 .