# Disable sound controller
Disable-PnpDevice -InstanceId "your_sound_controller_instance_id" -Confirm:$false
# Wait for a few seconds (adjust the time if needed)
Start-Sleep -Seconds 5
# Enable sound controller
Enable-PnpDevice -InstanceId "your_sound_controller_instance_id" -Confirm:$false
To use this script, you'll need to provide the instance ID of your sound controller. Here's how you can find it:
- Press Win + X and select "Device Manager" from the menu.
- In the Device Manager window, expand the "Sound, video and game controllers" category.
- Right-click on your sound controller and select "Properties."
- In the Properties window, go to the "Details" tab.
- From the "Property" drop-down list, select "Device Instance Path".
- The instance ID will be displayed in the "Value" box. It typically starts with "PCI" or "HDAUDIO".
Once you have the instance ID, replace "your_sound_controller_instance_id" in the script with your actual instance ID.
Save the script with a .ps1 extension, such as sound_controller_reset.ps1.
- Press Win + X and select "Windows PowerShell" (or "Windows PowerShell (Admin)" if you want to run as an administrator).
- In the PowerShell window, navigate to the directory where you saved the script using the cd command. For example: cd C:\Scripts.
- Run the script by entering its name (including the extension). For example: .\sound_controller_reset.ps1.
Please note that running PowerShell scripts requires administrative privileges.
If you receive an error related to execution policy, you may need to change the execution policy by running PowerShell as an administrator and executing the following command: Set-ExecutionPolicy RemoteSigned.