Skip to content

Script to remove default application in Windows 10/11

License

Notifications You must be signed in to change notification settings

Vinalti/Windows-Remove-Preinstalled-Apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Windows remove preinstalled Applications

Script to remove default application in Windows 10/11

How to Use

OneLiner

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.

From Explorer

  1. Download the file remove_preinstalled_apps.ps1
  2. Execute remove_preinstalled_apps.ps1 by doing right-click > Run with PowerShell

From Command Line

  1. Download the file remove_preinstalled_apps.ps1
  2. open a terminal with shift + Right Click* > Open PowerShell window here (Open in Windows Terminal for Windows 11)
  3. .\remove_preinstalled_apps.ps1

*You need to right click in an empty space on the explorer window, at the location of the downloaded file.

Prerequisite

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

About

Script to remove default application in Windows 10/11

Topics

Resources

License

Stars

Watchers

Forks