Disable Defender Antivirus data storage location
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: High
System Functionality / Data Loss Risk: High
This action improves privacy with high impact when you run the recommended script.
- Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script removes a configuration value that controls where Defender stores its data.
This is a configuration related to Defender Antivirus 1.
Windows configures this setting when installing Defender Antivirus service 2.
It specifies where data, including virus definition databases and other detection files, is installed 3.
It is used by various Defender components like MpClient.dll
4, MpSvc.dll
5, MsMpEng.exe
6 and MpCmdRun.exe
7.
Deleting this value enhances privacy by preventing these components from accessing their data directories. This reduces their data collection capabilities.
However, this change has significant security risks:
- It may weaken Defender Antivirus's ability to detect and remove malware
- Some security features of Defender Antivirus may not work properly
- This may make your system more vulnerable to security threats
This action may leave your system less protected against viruses and malware.
Technical Details
The script deletes the HKLM\SOFTWARE\Microsoft\Windows Defender!ProductAppDataPath
registry value 1 2.
In earlier Windows versions, this value was found at HKLM\SOFTWARE\Microsoft\Microsoft Antimalware!ProductAppDataPath
3.
When this value is removed, Windows logs Event ID 5007 1. The event message states 1:
Microsoft Defender Antivirus Configuration has changed.
If this is an unexpected event you should review the settings as this may be the result of malware.
According to tests, Windows 10 Pro (≥ 22H2) and Windows 11 Pro (≥ 21H2) have protective measures that may prevent this change from taking effect or may quickly reverse it.
- Not Advised
This script should only be used by advanced users.
This script is not recommended for daily use as it breaks important functionality.
Consider creating a system restore point before doing any changes.
- Security Trade-off
This action prioritizes privacy over certain security features. It's not recommended and should only be used by advanced users after understanding its implications.
Increased Privacy
Enhanced privacy through reduced data collection and trackingDecreased Security
Some security features will be disabled or limitedThis script can be reversed, this action allows you to can restore the system security.
Sources
- New Windows Defender event 5007 re. ProductAppDataPath. www.windowsphoneinfo.com. (2024).
Original: https://www.windowsphoneinfo.com/threads/new-windows-defender-event-5007-re-productappdatapath.464273
Archived: https://archive.ph/2024.10.28-093132/https://www.windowsphoneinfo.com/threads/new-windows-defender-event-5007-re-productappdatapath.464273/ - nickel-x64/WinSxS/Manifests/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431.manifest at b3f8c9549e49f2a92b401b3809b210d5f78190ba · privacysexy-forks/nickel-x64. github.com. (2024).
Original: https://github.com/privacysexy-forks/nickel-x64/blob/b3f8c9549e49f2a92b401b3809b210d5f78190ba/WinSxS/Manifests/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431.manifest
Archived: https://web.archive.org/web/20240829205326/https://github.com/privacysexy-forks/nickel-x64/blob/b3f8c9549e49f2a92b401b3809b210d5f78190ba/WinSxS/Manifests/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431.manifest - Redirecting Microsoft ForeFront Endpoint Protection AV Pattern Files - IVANDEMES. ivandemes.com. (2024).
Original: https://ivandemes.com/redirecting-microsoft-forefront-endpoint-protection-av-pattern-files
Archived: https://archive.ph/2024.10.28-093135/https://ivandemes.com/redirecting-microsoft-forefront-endpoint-protection-av-pattern-files/ - 10_0_22623_1020/C/Windows/WinSxS/wow64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_319098d47eeb862c/MpClient.dll.strings at 0225ce2c6d74641e63613c0a57c5c6ebea2df4d8 · privacysexy-forks/10_0_22623_1020. raw.githubusercontent.com. (2024).
Original: https://raw.githubusercontent.com/privacysexy-forks/10_0_22623_1020/0225ce2c6d74641e63613c0a57c5c6ebea2df4d8/C/Windows/WinSxS/wow64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_319098d47eeb862c/MpClient.dll.strings
Archived: https://archive.ph/2024.10.29-181420/https://raw.githubusercontent.com/privacysexy-forks/10_0_22623_1020/0225ce2c6d74641e63613c0a57c5c6ebea2df4d8/C/Windows/WinSxS/wow64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_319098d47eeb862c/MpClient.dll.strings - 10_0_22622_601/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431/MpSvc.dll.strings at c598035e1a6627384d646140fe9e4d234b36b11d · privacysexy-forks/10_0_22622_601. github.com. (2024).
Original: https://raw.githubusercontent.com/privacysexy-forks/10_0_22622_601/c598035e1a6627384d646140fe9e4d234b36b11d/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431/MpSvc.dll.strings
Archived: https://web.archive.org/web/20240917123620/https://raw.githubusercontent.com/privacysexy-forks/10_0_22622_601/c598035e1a6627384d646140fe9e4d234b36b11d/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431/MpSvc.dll.strings - 10_0_22623_1020/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431/MsMpEng.exe.strings at 0225ce2c6d74641e63613c0a57c5c6ebea2df4d8 · privacysexy-forks/10_0_22623_1020. github.com. (2024).
Original: https://github.com/privacysexy-forks/10_0_22623_1020/blob/0225ce2c6d74641e63613c0a57c5c6ebea2df4d8/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431/MsMpEng.exe.strings
Archived: https://archive.ph/2024.10.28-094151/https://github.com/privacysexy-forks/10_0_22623_1020/blob/0225ce2c6d74641e63613c0a57c5c6ebea2df4d8/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431/MsMpEng.exe.strings - 10_0_19045_2251/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.19041.1_none_7b973051f62a1a6d/MpCmdRun.exe.strings at 0960c766a4fc8eb5a95d47ac4df6c1d35b9324bf · privacysexy-forks/10_0_19045_2251. raw.githubusercontent.com. (2024).
Original: https://raw.githubusercontent.com/privacysexy-forks/10_0_19045_2251/0960c766a4fc8eb5a95d47ac4df6c1d35b9324bf/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.19041.1_none_7b973051f62a1a6d/MpCmdRun.exe.strings
Archived: https://archive.ph/2024.10.28-095446/https://raw.githubusercontent.com/privacysexy-forks/10_0_19045_2251/0960c766a4fc8eb5a95d47ac4df6c1d35b9324bf/C/Windows/WinSxS/amd64_windows-defender-service_31bf3856ad364e35_10.0.19041.1_none_7b973051f62a1a6d/MpCmdRun.exe.strings
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable Defender Antivirus data storage location" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable Defender Antivirus data storage location" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable Defender Antivirus data storage location
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Delete the registry value "ProductAppDataPath" from the key "HKLM\SOFTWARE\Microsoft\Windows Defender"
PowerShell -ExecutionPolicy Unrestricted -Command "function Invoke-AsTrustedInstaller($Script) { $principalSid = [System.Security.Principal.SecurityIdentifier]::new('S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464'); $principalName = $principalSid.Translate([System.Security.Principal.NTAccount]); $streamFile = New-TemporaryFile; $scriptFile = New-TemporaryFile; try { $scriptFile = Rename-Item -LiteralPath $scriptFile -NewName ($scriptFile.BaseName + '.ps1') -Force -PassThru; $Script | Out-File $scriptFile -Encoding UTF8; $taskName = "^""privacy$([char]0x002E)sexy invoke"^""; schtasks.exe /delete /tn $taskName /f 2>&1 | Out-Null; $executionCommand = "^""powershell.exe -ExecutionPolicy Bypass -File '$scriptFile' *>&1 | Out-File -FilePath '$streamFile' -Encoding UTF8"^""; $action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "^""-ExecutionPolicy Bypass -Command `"^""$executionCommand`"^"""^""; $settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries; Register-ScheduledTask -TaskName $taskName -Action $action -Settings $settings -Force -ErrorAction Stop | Out-Null; try { ($scheduleService = New-Object -ComObject Schedule.Service).Connect(); $scheduleService.GetFolder('\').GetTask($taskName).RunEx($null, 0, 0, $principalName) | Out-Null; $timeout = (Get-Date).AddMinutes(5); Write-Host "^""Running as $principalName"^""; while ((Get-ScheduledTaskInfo $taskName).LastTaskResult -eq 267009) { Start-Sleep -Milliseconds 200; if ((Get-Date) -gt $timeout) { Write-Warning 'Skipping: Timeout'; break; }; }; if (($result = (Get-ScheduledTaskInfo $taskName).LastTaskResult) -ne 0) { Write-Error "^""Failed, due to exit code: $result."^""; } } finally { schtasks.exe /delete /tn $taskName /f | Out-Null; }; Get-Content $streamFile } finally { Remove-Item $streamFile, $scriptFile; }; }; $cmd = '$keyName = ''HKLM\SOFTWARE\Microsoft\Windows Defender'''+"^""`r`n"^""+'$valueName = ''ProductAppDataPath'''+"^""`r`n"^""+'$hive = $keyName.Split(''\'')[0]'+"^""`r`n"^""+'$path = "^""$($hive):$($keyName.Substring($hive.Length))"^""'+"^""`r`n"^""+'Write-Host "^""Removing the registry value ''$valueName'' from ''$path''."^""'+"^""`r`n"^""+'if (-Not (Test-Path -LiteralPath $path)) {'+"^""`r`n"^""+' Write-Host ''Skipping, no action needed, registry key does not exist.'''+"^""`r`n"^""+' Exit 0'+"^""`r`n"^""+'}'+"^""`r`n"^""+'$existingValueNames = (Get-ItemProperty -LiteralPath $path).PSObject.Properties.Name'+"^""`r`n"^""+'if (-Not ($existingValueNames -Contains $valueName)) {'+"^""`r`n"^""+' Write-Host ''Skipping, no action needed, registry value does not exist.'''+"^""`r`n"^""+' Exit 0'+"^""`r`n"^""+'}'+"^""`r`n"^""+''+"^""`r`n"^""+''+"^""`r`n"^""+'try {'+"^""`r`n"^""+' if ($valueName -ieq ''(default)'') {'+"^""`r`n"^""+' Write-Host ''Removing the default value.'''+"^""`r`n"^""+' $(Get-Item -LiteralPath $path).OpenSubKey('''', $true).DeleteValue('''')'+"^""`r`n"^""+' } else {'+"^""`r`n"^""+' Remove-ItemProperty `'+"^""`r`n"^""+' -LiteralPath $path `'+"^""`r`n"^""+' -Name $valueName `'+"^""`r`n"^""+' -Force `'+"^""`r`n"^""+' -ErrorAction Stop'+"^""`r`n"^""+' }'+"^""`r`n"^""+' Write-Host ''Successfully removed the registry value.'''+"^""`r`n"^""+'} catch {'+"^""`r`n"^""+' Write-Error "^""Failed to remove the registry value: $($_.Exception.Message)"^""'+"^""`r`n"^""+'} '; Invoke-AsTrustedInstaller $cmd"
Ijo6IFJlc3RvcmUgdGhlIHJlZ2lzdHJ5IHZhbHVlIFwiUHJvZHVjdEFwcERhdGFQYXRoXCIgaW4ga2V5IFwiSEtMTVxcU09GVFdBUkVcXE1pY3Jvc29mdFxcV2luZG93cyBEZWZlbmRlclwiIHRvIGl0cyBvcmlnaW5hbCB2YWx1ZSBcblBvd2VyU2hlbGwgLUV4ZWN1dGlvblBvbGljeSBVbnJlc3RyaWN0ZWQgLUNvbW1hbmQgXCJmdW5jdGlvbiBJbnZva2UtQXNUcnVzdGVkSW5zdGFsbGVyKCRTY3JpcHQpIHsgJHByaW5jaXBhbFNpZCA9IFtTeXN0ZW0uU2VjdXJpdHkuUHJpbmNpcGFsLlNlY3VyaXR5SWRlbnRpZmllcl06Om5ldygnUy0xLT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YG5cIl5cIlwiKycgICAgICAgIC1OYW1lICR2YWx1ZSBgJytcIl5cIlwiYHJgblwiXlwiXCIrJyAgICAgICAgLUVycm9yQWN0aW9uIFNpbGVudGx5Q29udGludWUgYCcrXCJeXCJcImByYG5cIl5cIlwiKycgICAgICAgIHwgU2VsZWN0LU9iamVjdCAtRXhwYW5kUHJvcGVydHkgJHZhbHVlJytcIl5cIlwiYHJgblwiXlwiXCIrJyAgICBpZiAoJGN1cnJlbnREYXRhIC1lcSAkZGF0YSkgeycrXCJeXCJcImByYG5cIl5cIlwiKycgICAgICAgIFdyaXRlLUhvc3QgJydTa2lwcGluZywgbm8gY2hhbmdlcyByZXF1aXJlZCwgdGhlIHJlZ2lzdHJ5IGRhdGEgaXMgYWxyZWFkeSBhcyBleHBlY3RlZC4nJycrXCJeXCJcImByYG5cIl5cIlwiKycgICAgICAgIEV4aXQgMCcrXCJeXCJcImByYG5cIl5cIlwiKycgICAgfScrXCJeXCJcImByYG5cIl5cIlwiKycgICAgJytcIl5cIlwiYHJgblwiXlwiXCIrJyAgICB0cnkgeycrXCJeXCJcImByYG5cIl5cIlwiKycgICAgICAgICR0eXBlID0gc3dpdGNoICgkcmF3VHlwZSkgeycrXCJeXCJcImByYG5cIl5cIlwiKycgICAgICAgICAgICAnJ1JFR19TWicnIHsgJydTdHJpbmcnJyB9JytcIl5cIlwiYHJgblwiXlwiXCIrJyAgICAgICAgICAgICcnUkVHX0RXT1JEJycgeyAnJ0RXb3JkJycgfScrXCJeXCJcImByYG5cIl5cIlwiKycgICAgICAgICAgICAnJ1JFR19RV09SRCcnIHsgJydRV29yZCcnIH0nK1wiXlwiXCJgcmBuXCJeXCJcIisnICAgICAgICAgICAgJydSRUdfRVhQQU5EX1NaJycgeyAnJ0V4cGFuZFN0cmluZycnIH0nK1wiXlwiXCJgcmBuXCJeXCJcIisnICAgICAgICAgICAgZGVmYXVsdCB7JytcIl5cIlwiYHJgblwiXlwiXCIrJyAgICAgICAgICAgICAgICB0aHJ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storage location" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable Defender Antivirus service
- Disable Defender services and drivers
- Disable Defender Antivirus
- Disable Defender
- Privacy over security
This category disables the Defender Antivirus service and its related components. This service is also referred to as Microsoft Defender Antivirus Service and Wind...
This write-up —disable Defender services and drivers— provides guidance on how to secure your digital footprint via personal privacy maintenance on Windows. In dir...
This category provides scripts to disable Defender Antivirus. Defender Antivirus, integrated into Windows, provides protection against viruses, ransomware, and oth...
This category offers scripts to disable Windows security components related to Defender. Defender is also referred to as Microsoft Defender or Windows Defender. Al...
Steps to privacy over security on your Windows machine to enhance data privacy protection. Together with that, this feature walks through the procedure to undo the...
Same Goal
Other guides in Disable Defender Antivirus serviceSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
See all 10 guides
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.