-
Notifications
You must be signed in to change notification settings - Fork 0
Install Guide EN
Ayerdi edited this page Aug 12, 2026
·
10 revisions
Automatically switch your Windows audio output when you connect or disconnect your wireless headset (works with any headset Windows can see, and with Logitech PRO X 2 via G HUB).
| Requirement | Detail |
|---|---|
| Windows | 10/11 x64 |
| For universal mode | None — Windows just needs to see the headset endpoint (e.g. Jabra Evolve 65) |
| For Logitech PRO X 2 | Logitech G HUB installed, open and recognizing the PRO X 2 |
| Internet | Only during install (downloads svcl.exe from NirSoft — skipped if already installed) |
| PowerShell | 5.1 or newer |
Note: no admin rights should be required for normal operation. Only toggling Audio Enhancements asks for a one-time UAC elevation.
Open PowerShell and paste:
powershell.exe -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/Ayerdi/PROX2-AutoSwitch/main/install.ps1 | iex"It downloads the latest version, verifies its SHA-256 against the published checksum and runs the full installer automatically.
- Download the ZIP of the latest version from GitHub Releases.
- Extract the whole ZIP to a normal folder. Don't run from inside the ZIP.
- If Windows blocked the downloaded scripts:
Get-ChildItem . -Filter *.ps1 | Unblock-File- Run:
powershell.exe -ExecutionPolicy Bypass -File ".\Instalar-PROX2-AutoSwitch.ps1"- Downloads SoundVolumeCommandLine from NirSoft only if it is not already installed, and verifies its SHA-256 before running it.
- Lists the Windows output devices and lets you pick the headset and the alternative output (fallback).
- Checks whether Windows reflects the headset's physical state (it asks you to turn the headset OFF → ON):
- if Windows shows
Active → Unplugged → Active, it picks the universal (WindowsEndpoint) mode automatically; - if not, and the headset is a Logitech PRO X 2, it connects to G HUB (
ws://localhost:9010), lists only PRO X 2 candidates and uses the battery payload; - if nothing works, it aborts instead of installing something that can't work.
- if Windows shows
- Captures the real Item IDs of your current Windows and actually tests both switches.
- Offers to disable the headset's Audio Enhancements (one UAC prompt).
- Copies the runtime, creates an invisible autostart entry (
wscript.exe) and starts AutoSwitch.
Once running, an icon appears in the system tray:
- Headset / Fallback / Next switch — info lines showing the configured devices and which output AutoSwitch would switch to right now (refreshed every 5 s).
- AutoSwitch: Enabled / Disabled — pause or resume switching without quitting.
- Disable / Enable Audio Enhancements for — toggles the global Windows audio enhancements of the configured headset (a UAC prompt appears; the menu updates only if the change is verified).
- Reconfigure... — pick a new headset and fallback from the current Windows output devices without reinstalling.
- Exit — stop AutoSwitch.
- Windows audio
Item IDs are not reused across installs. Don't copyconfig.jsonfrom another machine. - The
dev000000XXfrom G HUB isn't persisted either: the runtime keeps theextendedDisplayNameand discovers thedeviceIdat startup.
%LOCALAPPDATA%\PROX2AutoSwitch\
Autostart: %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\PRO X 2 AutoSwitch.lnk
The shortcut runs
wscript.exe→ hidden PowerShell. No console stays visible at login.
Español
English