FRS_ERR_INVALID_SERVICE_PARAMETER (0X00001F51) Fix Steps
Corrupt FRS registry keys cause this error on Windows Server 2003–2012. The fix is deleting bad parameters and letting FRS rebuild them. I'll walk you through it.
You're staring at the System log and see FRS_ERR_INVALID_SERVICE_PARAMETER (0X00001F51). The File Replication Service won't start. This is one of those errors that makes you dig through registry keys instead of just restarting the service. I've seen this on Windows Server 2003 R2 through Server 2012 — the FRS service is old and cranky, and it doesn't like corrupted parameters. Here's the exact fix.
1. Corrupt FRS Registry Parameters (the most common cause)
Nine times out of ten, this error means the registry keys under HKLM\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters got corrupted. This usually happens after an unexpected shutdown or a disk write failure. The FRS service reads these parameters at startup, and if one of them is malformed, it throws 0X00001F51 and refuses to start. Don't waste time looking for a specific bad value — the fastest fix is to delete the whole Parameters key and let FRS rebuild it on the next start.
- Open Registry Editor (regedit.exe).
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters. - Right-click the Parameters key (not the NtFrs key) and choose Export. Save it somewhere safe, like C:\backup\NtFrs_Parameters.reg. This gives you a rollback if things go weird.
- After the export, right-click the Parameters key again and select Delete. Confirm when it asks.
- Close Registry Editor.
- Open an Command Prompt as Administrator.
- Type
net stop ntfrsand press Enter. If the service isn't running, you'll get an error — that's fine. - Type
net start ntfrsand press Enter.
After step 8, you should see The File Replication service is starting. and then The File Replication service was started successfully. Go check the System log — the error should be gone. FRS will recreate the default parameters automatically. If the service still won't start, move to the next fix.
2. Journal Wrap Error in the FRS Debug Register
Sometimes the registry itself is fine, but the FRS debug register (which tracks NTFS journal events) has wrapped around too many times. This is especially common on servers with heavy file changes or a very small journal (default is 5 MB on older systems). The symptom is the same 0X00001F51 error, but you'll also see Event ID 13568 in the System log — The file replication service has detected a journal wrap error.
You need to reset the FRS debug register. Here's how:
- Open Command Prompt as Administrator.
- Type
reg query HKLM\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters\Backup/Restore\Process Startupand press Enter. You should see a value called BurntOut. - If BurntOut exists, delete it:
reg delete HKLM\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters\Backup/Restore\Process Startup /v BurntOut /f - Type
net stop ntfrsand press Enter. - Type
net start ntfrsand press Enter.
After the service starts, check the System log. If you still see the error, run this command to force FRS to rebuild the journal: nltest /dbflag:2080ffff. Then restart the service again. The nltest command enables verbose debug logging — don't leave it on permanently. Once FRS is running clean, disable it: nltest /dbflag:0.
3. Staging Folder Empty or Corrupt
Less common, but I've seen it. If the FRS staging folder (usually C:\WINDOWS\NtFrs\staging or D:\FRS\staging) is empty or has corrupt files, the service can't initialize. The error code is the same 0X00001F51, but the System log will have Event ID 13508 or 13509 alongside it.
To check and fix the staging folder:
- Open File Explorer and navigate to the staging folder. The exact path is stored in the registry at
HKLM\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters\Working Directory. - If the folder is empty, stop the FRS service:
net stop ntfrs. - Rename the staging folder to something like
staging_old. - Create a new empty folder called
stagingin the same location. - Start the service:
net start ntfrs. - FRS will populate the staging folder with the required junction points and files. Wait two or three minutes, then check the System log.
If the service starts but replication doesn't happen, you may need to re-authorize the replica set using nltest /dsgetsite: or run a non-authoritative restore via the FRS GUI. But in my experience, this staging folder fix gets the service running 90% of the time.
Quick-Reference Summary Table
| Cause | Symptoms | Fix |
|---|---|---|
| Corrupt Parameters key | 0X00001F51 on service start, no other FRS events | Delete HKLM\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters and restart service |
| Journal wrap error | 0X00001F51 + Event ID 13568 | Delete BurntOut registry value, restart service |
| Corrupt/empty staging folder | 0X00001F51 + Event ID 13508/13509 | Rename staging folder, create new one, restart service |
Was this solution helpful?