A simple PowerShell utility to rescue windows that are stuck off-screen after disconnecting monitors or changing display settings.
- Lists all open windows on your system
- Allows searching by window title
- Moves the selected window to a visible position (100,100) on your screen
- Preserves the window's original size
- Download
WindowRescuer.ps1 - Right-click the file and select "Run with PowerShell"
- If you get a security warning, you may need to run:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
- If you get a security warning, you may need to run:
- Search for your lost window by name (e.g., "Plex")
- Select it and click "Reset Window Position"
- Press Start, type "PowerShell ISE" and run it as Administrator
- Open a new tab (File → New)
- Copy and paste the entire script code into the new tab
- Press F5 or click the green "Run Script" button
- Follow the on-screen instructions
This copy-paste method helps bypass security restrictions that might prevent the script from running.
-
How to download a file from Github: In the list of files at the top of this page, select
WindowRescuer.ps1. In the page it opens, look for the download button a the top right. This will always be the most up to date version.
-
"Running scripts is disabled on this system": Run PowerShell as Administrator and enter:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope ProcessThen try running the script again. For more information, please conduct your own research online. Powershell permissions issues can be complicated and are outside of the scope of this repository.
-
Window still not showing: Some applications might need to be restarted to properly reset their position.
Copyright © Lou Bernardi 2025
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
