A PowerShell solution to permanently prevent NVIDIA High Definition Audio devices from being automatically enabled in Windows. This script creates a persistent monitor that automatically disables NVIDIA audio devices when they appear, ensuring your audio output remains on your preferred device.
- 🔄 Automatic disable of NVIDIA HD Audio devices
- 🕒 Persistent monitoring across system restarts
- 📝 Comprehensive logging system
- 🛡️ Error resilient with retry mechanisms
- 🖥️ User-friendly interactive menu
- 🚀 One-line installation option
Set-ExecutionPolicy Bypass -Scope Process -Force; irm https://raw.githubusercontent.com/David-c0degeek/nvidia-audio-killer/main/killaudio.ps1 | iexThis command will:
- Temporarily bypass execution policy for the current PowerShell session
- Download and execute the script
- Install the audio control service
- Clone the repository:
git clone https://github.com/David-c0degeek/nvidia-audio-killer.git- Navigate to the script directory:
cd nvidia-audio-killer- Run the script:
.\killaudio.ps1-
Install and enable audio control
- Sets up the monitoring service
- Creates necessary scheduled tasks
- Performs initial device check
-
Uninstall and disable audio control
- Removes all components
- Cleans up scheduled tasks
- Deletes script files
-
Check current status
- Shows service status
- Displays last run time
- Lists current NVIDIA audio devices
-
View logs
- Shows the last 20 log entries
- Useful for troubleshooting
-
Force immediate device check
- Manually triggers device scan
- Disables any found NVIDIA audio devices
After installation, components are stored in:
- Scripts:
C:\DeviceAudioAutoDisable\ - Logs:
C:\DeviceAudioAutoDisable\AudioControl.log
- Windows 10/11
- PowerShell 5.1 or later
- Administrator privileges
- NVIDIA Graphics Card (for the script to be useful)
-
Script won't run
- Ensure you have administrator privileges
- Check execution policy
- Verify PowerShell version
-
Devices still appearing
- Check logs for errors
- Verify service is running
- Run immediate device check
-
Installation fails
- Ensure you have admin rights
- Check system permissions
- Review logs for specific errors
Logs are stored at C:\DeviceAudioAutoDisable\AudioControl.log and contain:
- Timestamp for each action
- Success/failure status
- Error details when applicable
- Device state changes
To remove the script and all its components:
- Run the script interactively:
.\killaudio.ps1- Select option 2 (Uninstall and disable audio control)
Or use PowerShell directly:
Unregister-ScheduledTask -TaskName "NvidiaAudioAutoDisable" -Confirm:$false
Remove-Item "C:\DeviceAudioAutoDisable" -Recurse -Force- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
David (C0deGeek)
- NVIDIA for consistently giving us reasons to write scripts like this
- The PowerShell community for their invaluable resources and support
For support, please open an issue on GitHub.