# How to move a window from primary window to secondary.

**URL:** <https://forums.powershell.org/t/how-to-move-a-window-from-primary-window-to-secondary/15528>\
**Category:** PowerShell Help\
**Created:** [January 26, 2021, 10:28am UTC](https://forums.powershell.org/t/how-to-move-a-window-from-primary-window-to-secondary/15528 "2021-01-26T10:28:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mondriaan](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mondriaan](https://forums.powershell.org/u/mondriaan)\
**Post date:** [January 26, 2021, 10:28am UTC](https://forums.powershell.org/t/how-to-move-a-window-from-primary-window-to-secondary/15528/1 "2021-01-26T10:28:30Z")

</div>

Hello i want to move a OpenOffice spreadsheet from the primary screen to the secondary because i run a fullscreen game on my primary screen.

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [January 26, 2021, 11:28am UTC](https://forums.powershell.org/t/how-to-move-a-window-from-primary-window-to-secondary/15528/2 "2021-01-26T11:28:42Z")

</div>

Are you looking to do that with PowerShell? If you are having a problem with a script, please post some code and details of any errors so that we can help diagnose the problem.

Personally, I just use the Windows key and cursor keys to shift windows around.

If you want to snap windows to a location, there’s a PowerToy for that:

[Windows PowerToys: FancyZones](https://docs.microsoft.com/en-us/windows/powertoys/fancyzones)

&nbsp;

---

<div class="post-metadata">

**Author:** ![mondriaan](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mondriaan](https://forums.powershell.org/u/mondriaan)\
**Post date:** [January 26, 2021, 12:30pm UTC](https://forums.powershell.org/t/how-to-move-a-window-from-primary-window-to-secondary/15528/3 "2021-01-26T12:30:06Z")

</div>

Hello, i use Playnite for my games, its a very usefull tool where a lot of functions can be automated (open spreadsheet, use short pause, start stop applications, run the game ofcourse and when the game ends all these functions can be returned to their previous stage. If i would have a few games your methode would be sufficient but my system consists of many game so i like to configure them automated (1-Click).

These WindowsPowerToys looks promising but i choke gradually in all these tools, all these Hooks complicate the gameplay (i use in the windows area tools like Actual Windows Manager and NextStart) but i stop them when i start playing because they make problems.

Thats why i like to use Powershell, but very thanks anyway.

&nbsp;

Mondriaan

---

<div class="post-metadata">

**Author:** ![mondriaan](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mondriaan](https://forums.powershell.org/u/mondriaan)\
**Post date:** [January 26, 2021, 12:31pm UTC](https://forums.powershell.org/t/how-to-move-a-window-from-primary-window-to-secondary/15528/4 "2021-01-26T12:31:21Z")

</div>

No i would like to use a Powershell script. Thank you.

&nbsp;

Mondriaan

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:27pm UTC](https://forums.powershell.org/t/how-to-move-a-window-from-primary-window-to-secondary/15528/5 "2024-05-16T20:27:58Z")

</div>

Closed on May 16, 2024, 8:27pm UTC


