microsoft / microsoft/PowerToys
Fancy Zones CLI not working correctly to apply layouts
@lei9444 is already working on this.
Since Jan 29, 2026.
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
### Microsoft PowerToys version
0.97.1
### Installation method
GitHub
### Area(s) with issue?
FancyZones
### Steps to reproduce
Run the following .bat file
`@echo off
cd /d C:
cd C:\Users\UserName\AppData\Local\PowerToys
FancyZonesCLI.exe s {CCA7EA77-E61B-4241-81B6-7488BCD1E5D8} --monitor 1
FancyZonesCLI.exe s {A32DC2F9-41EA-4094-9176-58905ACA3599} --monitor 2
FancyZonesCLI.exe s {A32DC2F9-41EA-4094-9176-58905ACA3599} --monitor 3
FancyZonesCLI.exe s {C8DA5A0B-FA54-48C4-A4B8-BB0DA578A188} --monitor 4`
### ✔️ Expected Behavior
each monitor gets the correct layout applied, according to their UUIDs found with FancyZonesCLI.exe ls
### ❌ Actual Behavior
Monitor 1 gets the correct custom layout applied
Monitor 2 gets a default layout applied, which is wrong
Monitor 3 gets the correct custom layout applied
Monitor 4 gets a default layout applied, which is wrong
### Additional Information
Windows 11, version 24H2
Monitor 1: Dell P2419H, Vertical
Monitor 2: HP Z23n G2
Monitor 3: HP ZBook Fury 16 G10 laptop screen
Monitor 4: HP Z23n G2, Vertical
External monitors connected through HP Thunderbolt Dock G4's
### Other Software
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.