Quick Answer
Restart the RPC Endpoint Mapper service and the associated service that threw the error. If that fails, run sfc /scannow from an admin command prompt, then check the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcEptMapper for corruption.
What's Going On Here?
This error code 0x00000726 means an RPC pipe object — basically a communication tunnel between two services — is either invalid or got corrupted. It's not a hard drive failure or a driver issue. It's a protocol-level problem. I saw this on a client's Windows Server 2016 that ran a SQL Server instance. The SQL service couldn't talk to the RPC Endpoint Mapper, and everything just stopped. The trigger was a botched Windows update that didn't fully install. Another time, a misconfigured firewall rule on a domain controller caused it.
Step-by-Step Fix
- Check event logs first. Open Event Viewer, go to Windows Logs > System. Look for event ID 0x00000726 or anything next to it. That tells you which service is failing.
- Restart the RPC Endpoint Mapper. Open an admin command prompt, type
net stop RpcEptMapper && net start RpcEptMapper. Wait 10 seconds. Then restart the service that errored out. I had a client whose print spooler died because of this — restarting RpcEptMapper fixed it instantly. - Restart the troubled service. In the same command prompt, type
net stop <service name> && net start <service name>. Replace with the actual service name from the event log. - Run SFC scan. If steps 1-3 don't work, run
sfc /scannow. This checks system files for corruption. It takes 10-15 minutes. On that Windows Server 2016, SFC found two corrupted RPC-related DLLs and fixed them. - Check registry. Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcEptMapper. Make sure the key exists and has a Start value of 2 (automatic start) and Type of 16. If missing, export from a working machine and import. - Reboot. Yeah, last resort, but sometimes it's the only way after a partial update. Reboot the server, watch the event logs on restart.
Alternative Fixes If the Main One Fails
- Run DISM. Run
DISM /Online /Cleanup-Image /RestoreHealthfrom admin command prompt. This fixes the component store, which can corrupt RPC files. - Rebuild RPC configuration. Use
netsh rpc resetin admin command prompt. Resets RPC settings to default. Works sometimes after a network policy change. - Check firewall rules. Make sure port 135 (TCP) is open between the two machines. A client's antivirus blocked it once. Check Windows Defender Firewall rules too.
- Reinstall the service. If it's a third-party app, reinstall it. I had a backup agent that got its RPC pipe corrupted after a power failure. Reinstall took 5 minutes and fixed it.
Prevention Tips
- Apply updates in batches. Don't let Windows Update install 50 updates at once. Do 10 at a time, reboot between groups. Prevents partial installs that corrupt RPC.
- Monitor RPC service health. Set up a simple script to check if RpcEptMapper is running. I use a scheduled task that runs
sc query RpcEptMapper | find "STATE"every hour. - Back up the registry before changes. Before any update or configuration change, export the RpcEptMapper key. Takes 10 seconds, saves headaches.
- Use static ports for critical services. For SQL Server, set a static TCP port in the SQL Server Configuration Manager. Stops RPC pipe issues caused by dynamic port changes.
When to Call a Pro
If you've tried all this and the error still pops up, it's likely a deeper network issue — maybe DNS problems or a corrupt Active Directory database. Call a network admin or a Microsoft support person. Don't waste a week on it.