Powershell Script to set an appropriate sound device for 3CX softphone client.
- This script runs on Windows 10.
- Script execution policy needs to be at least RemoteSigned
- Download the script from the repository.
- Store it in a folder.
- Start the script Get-SoundDevice3CX.ps1
- Pick the device names for microphone and speakers you would like to use.
- Create a mask that fits all your devices. Example: This mask: Speakers*Logitech*USB*Headset* works for: Speakers (6- Logitech USB Headset)
- Put the masks for microphone and speaker into the config section of the script.
- Copy the file path to clipboard.
- Start task scheduler.
- Create a new task.
- Give it an appropriate name.
- Configure for: Windows 10.
- Change to "Triggers".
- Add the following triggers:
- At logon
- On workstation unlock
- Switch to "Actions"
- Enter 'powershell.exe' in "Program/script".
- Enter '-file "c:\mytools\Set-SoundDevice3CX\Set-SoundDevice3CX.ps1"'.
- Start in only the path to the ps1 file.
- Hit Ok.
- Hit Ok again.
Lock and unlock your workstation and check if the device is correctly set in 3CX.
Have fun!