Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyncVirtualDesktops Initialization Throws Exception After Latest Windows 11 Update #43

Open
ThisFungus opened this issue Aug 25, 2023 · 5 comments

Comments

@ThisFungus
Copy link

ThisFungus commented Aug 25, 2023

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

WinDynamicDesktop 25-08-23 23-52-28
@codemaster2837
Copy link

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?

@ThisFungus
Copy link
Author

@t1m0thyj Do you have any thoughts on this? Is there an alternative approach that could be undertaken, perhaps by utilizing AutoHotkey? Thank you!

@ThisFungus
Copy link
Author

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.

@kubalobo
Copy link

Instead of manually replacing files you can use Update-Module -Name VirtualDesktop in elevated PowerShell

@SnydersGC
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants