Hello,
Disable Windows Defender Completely
To ensure Defender is fully disabled, follow these steps:
Step 1: Disable Defender via Group Policy
Press Win + R, type gpedit.msc, and press Enter.
Navigate to:
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus
Double-click Turn off Microsoft Defender Antivirus.
Set it to Enabled and click OK.
Step 2: Disable Defender via Registry
Press Win + R, type regedit, and press Enter.
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
Create a new DWORD (32-bit) Value named DisableAntiSpyware.
Set its value to 1.
Restart your system.
Step 3: Disable Defender Services
Press Win + R, type services.msc, and press Enter.
Locate the following services:
Microsoft Defender Antivirus Service
Microsoft Defender Antivirus Network Inspection Service
Right-click each service, select Properties, and set the Startup type to Disabled.
Stop the services if they are running.
- Exclude Your Application Files from Defender Scans
If you prefer to keep Defender enabled but prevent it from deleting your files, add your application's directory to the exclusion list:
Open Windows Security:
Press Win + I, go to Update & Security > Windows Security > Virus & threat protection.
Click Manage settings under Virus & threat protection settings.
Scroll down to Exclusions and click Add or remove exclusions.
Add the folder containing your application's executable files.
- Block Windows Updates
To prevent further updates from interfering with your system, you can temporarily block updates:
Step 1: Disable Windows Update Service
Press Win + R, type services.msc, and press Enter.
Locate the Windows Update service.
Right-click it, select Properties, and set the Startup type to Disabled.
Stop the service if it is running.
- Restore Deleted Files
If your application files were deleted, you may need to restore them:
Check the Quarantine in Windows Security:
Open Windows Security > Virus & threat protection > Protection history.
If your files are listed, restore them.
If the files are not in quarantine, restore them from a backup or reinstall your application.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.