This error is a pain, I know
You're working on something, and then bam — error 0X000005A3. It says "Invalid GW_* command." I've seen this on Windows 10 and 11 machines. It usually means Windows can't send a command to your sound card driver. Don't panic. The fix is straightforward.
First thing: restart the Windows Audio service
This fixes most cases of 0X000005A3. Here's how:
- Press
Win + R, typeservices.msc, and hit Enter. - Scroll down to Windows Audio. Right-click it and choose Restart.
- Also restart Windows Audio Endpoint Builder the same way.
- Close the window and try whatever you were doing again.
That's it. Simple, right? This works because the audio service sometimes gets stuck. It holds a bad state that triggers the invalid GW_* command. Restarting clears that state.
If that doesn't help, reinstall your audio driver
A corrupted driver is the second most common cause. Here's the fast way to do it:
- Right-click the Start button and choose Device Manager.
- Expand Sound, video and game controllers.
- Find your audio device — it's usually Realtek, Intel, or NVIDIA High Definition Audio.
- Right-click it and choose Uninstall device. Check the box that says Delete the driver software for this device if you see it.
- Restart your computer. Windows will reinstall the driver automatically.
I prefer this over driver update tools. Those tools often install the wrong version. Windows Update does a better job with basic drivers. If you have a Realtek card, go to your PC maker's support site — Dell, HP, Lenovo — and grab the driver there. Generic drivers can cause the same error.
Why this happens in the first place
The error 0X000005A3 means the audio driver (the GW_* part) didn't understand a command from Windows. Think of it like this: the driver is a translator. The audio service says "play sound." The driver should say "okay, speaker, do it." But if the driver is confused or outdated, it sends back "Invalid GW_* command." That's the 0X000005A3 error.
This usually happens after a Windows update. The update changes how Windows talks to the driver. Or you installed new audio software that conflicted with the existing driver. I've seen it with Discord, Zoom, and even some games that use custom audio engines.
Less common variations: the registry fix
Sometimes the audio service restart and driver reinstall don't work. That points to a deeper issue — a bad registry entry. But be careful: messing with the registry can break stuff if you're not sure what you're doing.
Here's the safe way:
- Open Registry Editor (
regeditfrom Run). - Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Audiosrv. - On the right, look for Start. Double-click it. Make sure it's set to 2 (automatic start).
- Do the same for
AudioEndpointBuilderunder the same path. - Close Registry Editor and restart.
This only fixes cases where the audio service wasn't set to start automatically. It's rare but I've seen it after malware scans or manual cleanup tools.
Another odd trigger: a third-party audio manager
Realtek HD Audio Manager, Dolby Atmos, or Sonic Studio can sometimes cause 0X000005A3. They send custom commands to the driver that Windows doesn't like. If you have one of these, try disabling it temporarily:
- Open Task Manager (
Ctrl + Shift + Esc). - Go to the Startup tab.
- Find the audio manager entry and disable it.
- Restart.
If the error goes away, you found the culprit. You can keep it disabled or check for updates from the maker.
Prevention: keep it clean
To stop this error from coming back:
- Don't install multiple audio drivers. Uninstall old ones before installing new ones. Two drivers fighting is a common cause.
- Update audio drivers only from your PC maker's site. Windows Update drivers are fine for most people. Avoid third-party driver updater tools.
- After a Windows update, restart your PC. I know it's annoying, but it helps the audio service re-register its commands cleanly.
- Run the audio troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters > Audio troubleshooter. It's basic, but it catches simple issues before they turn into 0X000005A3.
That's it. If you still see the error after these steps, it might be a hardware problem. Try a different pair of speakers or headphones. A failing audio jack can also trigger strange driver errors. But that's rare — 9 times out of 10, a service restart or driver reinstall fixes it.