Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, July 31, 2018 12:23 PM
Hi,
In my PC initially, internal speaker is connected as default device. Whenever I enable Line out, Line out is selected as default device. Now I want to change the default device back to speaker after enabling the line out. And I want to do it programmatically.
Is there any way to do this?
Thanks,
Rashmi
All replies (2)
Wednesday, August 1, 2018 7:07 AM
Hi Rashmi,
Playback device is locate in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render in registry on Windows 10. After you go to Render, you will see the GUID code for each device. If you want to change internal speaker as the default device through script, we need to download and use Process Monitor to catch the changed registry key and value when you change through GUI. Then modify this registry key through command reg add.
As the process is a little complex, we also could ask for help from Script forum for a detail script information.
Bests,
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Wednesday, August 1, 2018 12:49 PM
Hi Joy-Qiao,
Thanks for your reply. As you mentioned, I checked this path
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render .
There are GUID code and under each GUID there is subkey called 'properties'.
Use Process Monitor to catch the changed registry key and value when you change through GUI
Do you mean to say, registry key is GUID? and value is properties under GUID?
Thanks,
Rshmi