Game Hosting
Add a Windows Defender exclusion for the FiveM folder
Exclude your FiveM server folder from Windows Defender scans — via the UI or one PowerShell command — so the antivirus doesn't delete server files.
Jun 23, 20263 min readfivemwindows-defenderantivirusexclusionwindowstroubleshooting
Windows Defender sometimes flags FiveM server files (FXServer, resource files) as false positives and quarantines or blocks them. Adding the folder to exclusions prevents this.
Option 1 — From Windows Security (UI)
- Open Windows Security (Start → type "Windows Security").
- Go to Virus & threat protection.
- Under Virus & threat protection settings click Manage settings.
- Scroll down to Exclusions and click Add or remove exclusions.
- Click Add an exclusion → Folder and select your FiveM server folder (e.g.
C:\FXServer).
Option 2 — With a single command (PowerShell)
Open PowerShell as administrator and run (replace the path with your folder):
Add-MpPreference -ExclusionPath "C:\FXServer"
To confirm the exclusion was added:
Get-MpPreference | Select-Object -ExpandProperty ExclusionPath
Remove the exclusion (optional)
Remove-MpPreference -ExclusionPath "C:\FXServer"
Only exclude folders you trust. An excluded folder is no longer scanned, so install only verified FiveM resources and builds into it.
Was this article helpful?
Be the first to rate it