This PowerShell script is designed to permanently remove the Windows Defender Security Center (SecHealthUI) application from Windows and prevent it from being reinstalled during updates.
- Save the script as
Defender.ps1. - Open PowerShell as Administrator.
- Run the script using the following command:
.\Defender.ps1
- Removes SecHealthUI for all users on the system.
- Creates registry entries to prevent the app from being reinstalled.
- Uses DISM to mark the app as removable.
- Operating System: Windows 10 or Windows 11
- Permissions: Must be run with administrative privileges
To remove additional apps, modify the $removeappx array in the script to include the names of other applications you want to target.