How to move a window between desktops using powershell/.net on windows 10
问题 I'd like to be able to using powershell start a process and move any windows created by that process to a particular virtual desktop. Any ideas? 回答1: The Windows SDK Support Team Blog posted a C# demo to switch Desktops via IVirtualDesktopManager: [ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("a5cd92ff-29be-454c-8d04-d82879fb3f1b")] [System.Security.SuppressUnmanagedCodeSecurity] public interface IVirtualDesktopManager { [PreserveSig] int