Tested on Windows 11 25H2 with SoundVolumeView v2.51.
Key Changes:
- Improved Import Compatibility: Eliminated the need to manually update the user account after importing.
- Hardware Mapping: Updated for new virtual cable naming conventions; added B1 as a default input.
- Trigger Optimization: Migrated the trigger to
Microsoft-Windows-Audio/Operational(Event ID 65) for significantly better reliability.
- Open File Explorer, navigate to
C:\, and create a folder namedTemp. - Download SoundVolumeView: Go to the NirSoft website (download links are near the bottom of the page).
- Place
SoundVolumeView.exeinto theTempfolder.- Final Path:
C:\Temp\SoundVolumeView.exe
- Final Path:
- Run
C:\Temp\SoundVolumeView.exe. - Locate your preferred device in the list:
- Render: Output devices (Speakers, Headphones, Voicemeeter Input).
- Capture: Input devices (Microphones, Voicemeeter Output).
- Double-click your device name.
- Find the field labeled Command-Line Friendly ID and copy the entire string inside that box.
- Press
WIN + R, typetaskschd.msc, and hit Enter. - Click Import Task... in the right-hand Actions pane.
- Select the
SetDefaulDeviceOnConnection.xmlfile provided in this Gist. - In the properties window that opens, navigate to the Actions tab.
- You will see six "Start a program" entries. For each one:
- Select the entry and click Edit.
- In the Add arguments box, find the
/SetDefaultcommand. - Replace the ID between the quotes
""with your copied Command-Line Friendly ID.
- Click OK to save the changes.
If you change your hardware or Voicemeeter setup later, simply find the saved task in your Task Scheduler Library and update the IDs in the Actions tab as described in Step 3.
Enjoy! Windows will no longer be able to hijack the devices youโve decided as default. ๐