"No audio output device is installed" or sound stops working
Either the audio service has failed, the endpoint has been disabled, or the driver has been replaced by a generic one that does not match the codec.
What you see
A red cross on the speaker icon, no devices in the sound settings, or sound that works in one application and not another.
What is actually wrong
The Windows Audio and Audio Endpoint Builder services depend on each other and both must be running. Beyond that, a monitor connected over HDMI often takes over as the default endpoint, and driver updates regularly replace a vendor codec driver with the Microsoft generic one.
Codes and articles
Fixes (3)
Restart the audio services in the right order
No devices are listed. Two minutes, and it is the most common cause.
Check both services and their dependencies.
Get-Service Audiosrv,AudioEndpointBuilder,RpcSs | Format-Table Name,DisplayName,Status,StartTypeRestart the endpoint builder — which restarts Windows Audio with it, because Audiosrv depends on it.
Restart-Service AudioEndpointBuilder -ForceRestarting Audiosrv on its own leaves the endpoint builder in the same broken state that caused the fault, and the devices stay missing. The dependency runs the other way from what most people assume.
Make sure both are set to start automatically.
Set-Service Audiosrv -StartupType AutomaticSet-Service AudioEndpointBuilder -StartupType Automatic
Get-CimInstance Win32_SoundDevice | Format-Table Name,Status,StatusInfoRe-enable the endpoint and set the right default
Devices exist but nothing comes out, or the sound has moved to a monitor.
Open the sound control panel — the old one, which shows disabled devices.
control mmsys.cpl soundsRight-click in the device list and tick both "Show Disabled Devices" and "Show Disconnected Devices". A disabled endpoint is invisible without this, which is why the settings app appears to show nothing wrong.
Enable the correct device and set it as Default Device and Default Communication Device — these are two separate assignments and applications use them differently.
Test the endpoint's exclusive mode setting. In its Properties → Advanced, clear "Allow applications to take exclusive control" if one application silences all the others.
Put the correct codec driver back
Windows has replaced the vendor driver with "High Definition Audio Device".
Check what driver is bound now.
Get-PnpDevice -Class MEDIA | Format-Table FriendlyName,Status,InstanceId"High Definition Audio Device" is the Microsoft generic driver. On most laptops it produces no sound at all from the internal speakers because the amplifier is not driven.
Install the Realtek, Conexant or IDT package from the machine manufacturer's support page — not from Realtek directly, since the vendor build carries the amplifier configuration for that model.
If Windows Update reinstalls the generic driver, use the manufacturer's package again after the update rather than blocking updates entirely.
Get-CimInstance Win32_SoundDevice | Format-List Name,ManufacturerWhere this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.