Helper | Windows Virtual Desktop
# Create new desktop and move current window to it $new = New-Desktop Move-Window -Window (Get-ActiveWindow) -Destination $new Switch-Desktop $new Bind this to Win+Shift+N via your launcher (e.g., AutoHotkey or PowerToys Run). For most users : Install AutoHotkey + VirtualDesktop.ahk – it’s free, open-source, and gives you macOS-like virtual desktop control.
#include VirtualDesktop.ahk
; ===== Enhanced with VirtualDesktop.ahk library ===== ; Download from: https://github.com/pmb6tz/windows-desktop-switcher windows virtual desktop helper
; Pin window to all desktops #p::VirtualDesktop.TogglePinCurrentWindow() # Create new desktop and move current window
; Move active window to desktop 1-3 #+1::VirtualDesktop.MoveCurrentWindowToDesktop(1) #+2::VirtualDesktop.MoveCurrentWindowToDesktop(2) ===== Enhanced with VirtualDesktop.ahk library =====
function Move-WindowToDesktopNumber($num) $window = Get-ActiveWindow $target = Get-Desktop -Index ($num - 1) Move-Window -Window $window -Destination $target Switch-ToDesktopNumber 3
: Use PowerToys to remap Win+Ctrl+Left/Right to Win+1/2/3 and accept the limited move-window features.