WDD-scripts
WDD-scripts copied to clipboard
SyncVirtualDesktops Initialization Throws Exception After Latest Windows 11 Update
After updating to the latest version of Windows 11 (Version 22H2, OS build 22621.2215), running the PowerShell script that utilizes the SyncVirtualDesktops
module throws a type initialization exception for VirtualDesktop.DesktopManager
. This disrupts the functionality of managing virtual desktops through the script.
Error Message
I have the same problem after updating to 22621.2215. I am not a participant of the Insider Program. Is there a chance to solve the problem?
@t1m0thyj Do you have any thoughts on this? Is there an alternative approach that could be undertaken, perhaps by utilizing AutoHotkey? Thank you!
I've discovered the workaround! Simply replace the files located in C:\Users[USER]\Documents\WindowsPowerShell\Modules\VirtualDesktop\1.5.3 with these files from this GitHub repository.
Instead of manually replacing files you can use Update-Module -Name VirtualDesktop
in elevated PowerShell
Hey everybody. Did you find any other solution? It seems that the virtualsync script stopped working since the 1.5.3 version of VirtualDesktop, and we are now in the 1.5.6
Thanks in advance