How to terminate all jobs running on a specific virtual desktop?


  1. Posts : 188
    Win10 Pro X64 22H2 build 19045.3803
       #1

    How to terminate all jobs running on a specific virtual desktop?


    Is there any way to find and shut down all the tasks which have windows open on a particular virtual desktop?

    Background:

    I've had great success using virtual desktops to organize my workflow, with tasks related to a particular project running on the same virtual desktop. Starting them up quickly is easy: I wrote a script which uses VDesk ( GitHub - eksime/VDesk: Launch programs on new virtual desktops. ) to start related applications on the appropriate virtual desktop. Unfortunately, shutting those applications down again is more problematic. At the moment, I have to manually select each one to close it, which can get tedious after a while.

    Closing a virtual desktop is easy, but just makes things worse. The windows open there don't get closed. Instead, they get migrated to another virtual desktop.

    I've found lots of Web pages which discuss managing Windows Virtual Desktops, but they all seem to be about using Azure to run Windows VMs in the cloud, a completely different topic.
      My Computer


  2. Posts : 188
    Win10 Pro X64 22H2 build 19045.3803
    Thread Starter
       #2

    Searching GitHub finally found a command-line application which does what I want:
    VirtualDesktop GitHub - MScholtes/VirtualDesktop: C# command line tool to manage virtual desktops in Windows 10

    Since the VirtualDesktop API is undocumented, MS feels free to change it whenever they want. The author of VirtualDesktop has been providing a new version whenever this happens. As a result, there is a version available for Win10 and several for several versions of Win11.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:40.
Find Us




Windows 10 Forums