I know this error is infuriating. You hit logoff, the screen sits there, and eventually you get 0X0000089E - The logoff processor did not delete the message alias. The underlying code is NERR_UnableToDelName, which practically translates to: Windows tried to clean up a network message alias on shutdown and couldn't.
This usually pops up on Windows 10/11 Pro or Server 2016/2019/2022, especially if you've had a network share open or a printer connection that's gone stale. But the root cause isn't always the same. Let's start with the one that fixes it for most people, then work down.
Cause 1: Stale Network Session (Most Common)
The number one trigger is a lingering network session with a machine that's no longer available. When you log off, Windows tries to send a message to that machine's message alias (like COMPUTER1), and if the connection is dead, the delete fails. The error code literally spells it out: NERR_UnableToDelName means the name couldn't be removed from the remote computer's name table.
This tripped me up the first time too — I thought it was a permissions problem, but it was just a zombie connection.
How to Fix It
- Open Command Prompt as administrator.
- Type
net useand press Enter. You'll see a list of all current network connections. Look for any that showUnavailablein the status column. - For each dead connection, run
net use \\COMPUTERNAME /delete(replaceCOMPUTERNAMEwith the actual name). - If you want to clear all of them at once, run
net use * /delete /y.
After that, log off and see if the error disappears. If it does, you're done. If not, move on — there's a second suspect.
Cause 2: Corrupted User Profile or Registry Permission
Sometimes the message alias is stored in your user profile's registry hive, and the profile has gotten into a weird state. This often happens after a domain migration or a half-finished Windows update. The alias is tied to your HKEY_CURRENT_USER session, and if the profile can't write to it during logoff, you get this exact error.
You can check the Windows Event Log for a clue — look under Windows Logs > System for source User Profiles Service with event ID 1530 or 1509. That'll confirm a profile issue.
Fix Step 1: Clean Up the Profile's Registry Key
Careful with this one — back up first. But the fix is simple: delete the stale message alias registry entry.
- Press
Win + R, typeregedit, and press Enter. - Go to
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon. - Look for a value named
MessageAliasor similar. If it exists, right-click and delete it. - Close regedit and reboot.
Fix Step 2: Repair the Profile
If that doesn't work, the profile itself is likely corrupted. You can create a fresh local profile by renaming the old one. On Windows 10/11:
- Log into another admin account (or use Safe Mode).
- Go to
C:\Users\and find your user folder (e.g.,C:\Users\jdoe). Rename it tojdoe.old. - Open Registry Editor, go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList, find your SID (the long string with your username in the data column), and change theProfileImagePathvalue to point to the new folder name you'll create. Or just delete the SID key and let Windows recreate it on next login (this loses profile settings, but the alias gets reset). - Reboot and log in. Windows creates a fresh profile.
This is a bit heavy, but if the registry edit didn't do it, this is the next logical step. I've seen this fix work when nothing else would.
Cause 3: Server Message Block (SMB) Service Hanging
Less common, but still a real culprit: the SMB service itself is stuck. This happens on Windows Server boxes that have been up for months without a reboot, or on workstations that were part of a homegroup (homegroup is dead now, but leftover artifacts remain). The logoff processor talks to the SMB service to delete the message alias, and if the service is hung, the delete times out with this error.
You'll often see this paired with other SMB errors in the event log, like ID 6000 or 5002.
How to Fix It
- Open Services (
services.msc). - Find Server (that's the SMB service).
- Right-click and select Restart.
- If it won't restart, you'll need to reboot the machine.
If the service keeps hanging, check for third-party antivirus or firewall software that's blocking SMB ports (445, 139). I've seen some "security" suites cause this exact nightmare. Temporarily disable them to test — and if that fixes it, you know where to point the finger.
Quick Reference Summary
| Cause | Check | Fix |
|---|---|---|
| Stale network session | net use shows unavailable sessions | Delete them with net use * /delete /y |
| Corrupted profile | Event Log shows User Profiles Service errors | Delete MessageAlias registry key or recreate profile |
| SMB service hanging | Server service stuck, other SMB errors | Restart Server service, check AV/firewall |
Start with the first one — it's the fix that works 70% of the time. The other two are rarer, but each has its own telltale sign. If you're still stuck after all three, you might be dealing with a deeper network driver issue, but that's a separate rabbit hole. Try these first, and you'll likely have your logoff back to normal.
One last thing: after you fix it, run sfc /scannow to be safe. It won't hurt, and it catches any underlying file corruption that might have triggered the whole mess.