Script to remove default application in Windows 10/11
Open a terminal with powershell and enter the following command :
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser && Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Vinalti/Windows-Remove-Preinstalled-Apps/main/remove_preinstalled_apps.ps1" -OutFile ./_rpa.ps1 && ./_rpa.ps1
Reminder: As a good practice do not execute a script on your machine without double-checking its behavior. Make sure you understand what the above command is doing.
- Download the file
remove_preinstalled_apps.ps1
- Execute
remove_preinstalled_apps.ps1
by doing right-click >Run with PowerShell
- Download the file
remove_preinstalled_apps.ps1
- open a terminal with shift + Right Click* >
Open PowerShell window here
(Open in Windows Terminal
for Windows 11) .\remove_preinstalled_apps.ps1
*You need to right click in an empty space on the explorer window, at the location of the downloaded file.
By default, you should be prevent from running unsigned scripts because of the "Execution Policy". You can check the current Execution Policy with the following command :
Get-ExecutionPolicy
# or
Get-ExecutionPolicy -Scope CurrentUser
If required you can change the Execution Policy, as Administrator with:
# As admin:
Set-ExecutionPolicy Unrestricted
# or as a standard user:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
You can then restore the previous value with the command below. You can replace AllSigned
by whatever value was retrieved with
Get-ExecutionPolicy
before it was changed
# As Admin :
Set-ExecutionPolicy AllSigned
# or as a standard user:
Set-ExecutionPolicy AllSigned -Scope CurrentUser