microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.95k stars 6.53k forks source link

PowerToys crashing when trying to change settings for Video Conference Mute #35650

Open chjohans opened 17 hours ago

chjohans commented 17 hours ago

Microsoft PowerToys version

0.85,1

Installation method

GitHub

Running as admin

Yes

Area(s) with issue?

Video Conference Mute

Steps to reproduce

I have used this with no issues for years now, but after I did these two things VCM is somehow causing PowerToys to crash:

VCM is currently enabled, and when using the hotkey to toggle it it will toggle the microphone on/off, and also say that the camera is not in use (so it's not being toggled).

The VCM module is not being shown at all in the PowerToys "Dashboard" , neither as an Enabled or Disabled module.. It is shown on the left side menu in the PowerToys Dashboard. If I click onm it there PowerTouys will just crash with the following entry in the Event Viewer:

`

1000 0 2 100 0 0x8000000000000000 3774 Application chjo-pc PowerToys.Settings.exe 0.85.1.0 66960000 combase.dll 10.0.26100.2161 bf8a9606 c00000fd 000000000018de77 0xaee4 0x1db2a1628f76176 C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe C:\WINDOWS\System32\combase.dll e48c02c2-2357-40b2-a321-45ef89a74210

`

Uninstalling and re-instaløling PowerToys makes no difference. And I don't really want to lose my settings as I have spent quite a bit of time to setup Fancy Zones the way I want them.

But I need a way to disable and change the settings for the VCM module, I suspect it is "pointing" to a non-existing webcam (virtual) and that the module does not handle or check for that, hence crashing instead.

I did try to change the settings this way in powershell: Invoke-DscResource -Name PowerToysConfigure -Method Set -ModuleName Microsoft.PowerToys.Configure -Property @{ VideoConference = @{ Enabled = $false; SelectedCamera = "Logitech BRIO" } }

But that just gave me the following error message: Invoke-DscResource: Failed to serialize properties into CimInstance.

Try to find some relevant registry entries to manually change, but I gave up on tghat when I discovered that PowerToys alone has more than 4000 entries in the registry.

So at this point I'm stuck, and not able to either use or disable the VCM module. Please help!

✔️ Expected Behavior

``

❌ Actual Behavior

No response

Other Software

No response

chjohans commented 14 hours ago

So I tried to install this with powershell, and to disable VCM when iinstalling. I used the following configuration.dsc.yaml:

yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2

properties: resources:

But that didn't work either, this is the response I got:

PS Z:\Downloads> winget configure .\configuration.dsc.yaml Apply :: WinGetPackage [installPowerToys] Install PowerToys Module: Microsoft.WinGet.DSC by Microsoft Corporation [PSGallery] PowerShell Module with DSC resources related to WinGet configurations Settings: id: Microsoft.PowerToys source: winget Apply :: PowerToysConfigure Configure PowerToys Module: Microsoft.PowerToys.Configure Dependencies: installPowerToys Settings: VideoConference: SelectedCamera: Logitech BRIO Enabled: false You are responsible for understanding the configuration settings you are choosing to execute. Microsoft is not responsible for the configuration file you have authored or imported. This configuration may change settings in Windows, install software, change software settings (including security settings), and accept user agreements to third-party packages and services on your behalf.  By running this configuration file, you acknowledge that you understand and agree to these resources and settings. Any applications installed are licensed to you by their owners. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages or services. Have you reviewed the configuration and would you like to proceed applying it to the system? [Y] Yes [N] No: y Apply :: WinGetPackage [installPowerToys] The configuration unit was not in the module as expected. Apply :: PowerToysConfigure This configuration unit was not run because a dependency failed or was not run. Some of the configuration was not applied successfully.

How to solve this?