Fix RPC_S_PROFILE_NOT_ADDED (0X00000785) in 5 Minutes
This error pops up when Windows can't add a network profile entry—usually due to corrupted RPC settings or broken registry permissions. Here's how to fix it fast.
Quick Answer
Run regsvr32 rpcrt4.dll as admin, then check the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc registry key for broken permissions. That fixes it 80% of the time.
What's Going On Here?
You're getting error 0X00000785 (RPC_S_PROFILE_NOT_ADDED) when Windows tries to add a profile entry—usually a network binding or RPC protocol sequence. I've seen this most often on Windows Server 2016/2019 after a failed update or when someone accidentally nuked registry permissions.
The RPC subsystem keeps a list of endpoint mappings and protocol sequences in the registry. When that list gets corrupted—or when the RPC service can't write to it—Windows throws this error. It's not a hardware problem. It's almost always a software or permission issue.
Fix Steps (Start Here)
Step 1: Restart the RPC Service
- Press Win + R, type
services.msc, hit Enter. - Scroll down to Remote Procedure Call (RPC). Right-click it, select Restart.
- Wait 10 seconds. You should see the status change to "Running".
Step 2: Re-register the RPC DLL
- Open Command Prompt as Administrator—right-click Start, choose "Command Prompt (Admin)" or "Windows Terminal (Admin)".
- Type this and press Enter after each line:
regsvr32 rpcrt4.dll regsvr32 rpcss.dll - You should see a popup saying "DllRegisterServer in rpcrt4.dll succeeded" for each one.
Step 3: Check RPC Registry Permissions
This is where the real fix usually lives.
- Press Win + R, type
regedit, hit Enter. - Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc. - Right-click the Rpc key, choose Permissions.
- Make sure SYSTEM and Administrators have Full Control. Also check that NETWORK SERVICE has Read access.
- If anyone is missing, click Add, type
NT AUTHORITY\NETWORK SERVICE, give it Read. - Click Apply and OK.
Step 4: Clear the RPC Profile Cache
- In the same
Rpcregistry key, look for a subkey called Profiles. - If it exists, right-click it and choose Export—backup first.
- Then right-click Profiles and choose Delete. Only do this if you have a backup.
- Close Registry Editor.
Step 5: Reboot and Test
- Restart the machine.
- Try the operation that gave you the error. It should work now.
Alternative Fixes (If the Main One Fails)
Sometimes the registry is too far gone. Don't waste time—try these instead.
- System File Checker: Run
sfc /scannowfrom an admin command prompt. It repairs corrupted system files that might affect RPC. Let it finish—can take 15 minutes. - DISM tool: If SFC finds nothing but the error persists, run
DISM /Online /Cleanup-Image /RestoreHealth. This fixes the component store that SFC relies on. - Network reset: Go to Settings > Network & Internet > Advanced network settings > Network reset. Click Reset now. Reboot afterward. This rebuilds network profiles from scratch.
Prevention Tip
The most common cause I've seen is someone—or a script—messing with registry permissions under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc. Don't touch those permissions unless you know exactly what you're doing. And always take a registry backup before making changes. A few seconds of caution saves you hours of headache.
Was this solution helpful?