mr_vico mr_vico

Feature request: Command-line / CLI support for saving & restoring Fences layouts

Feature request: Command-line / CLI support for saving & restoring Fences layouts

Hello Stardock team,

I’m a long-time Windows power user and Fences user, and I’d like to ask whether it would be possible to add command-line (CLI) support for Fences, specifically for saving and restoring desktop layouts.

I’m using a multi-monitor setup, and occasionally Windows temporarily disconnects a secondary display (for example due to DisplayPort handshake or power-state changes). When this happens, Windows moves all desktop icons to the primary monitor. Fences already solves this perfectly by restoring the layout — but currently this can only be triggered manually via the UI.

What would be extremely useful is a simple, documented CLI interface, for example:

  • fences.exe /saveLayout

  • fences.exe /restoreLayout

  • or any equivalent supported mechanism (CLI, COM, or PowerShell-friendly API)

This would allow advanced users to:

  • Automatically restore layouts after display reconnect events

  • Integrate Fences into scripts or scheduled tasks

  • Eliminate the need for UI automation or workarounds

I understand that Fences is primarily a GUI-driven product, but even a very minimal CLI surface for layout management would add a lot of value for power users, especially in multi-monitor environments.

Thanks for a great product, and for considering this request.

 

Best regards,
mr_vico

 
45,146 views 54 replies
Reply #52 Top

Woooooo!!!! Huge! Yup confirmed in that log that refreshing the handle resolved issue in full.

Thank you again, and, other silent Fences users thank you for your patience as well 🙏🙏

+1 Loading…
Reply #53 Top

 

 

It is true that one can work around it perhaps. But the only (only!) cause is Fences mismatching the data. It is specifically programmed to handle this. Please submit a report and we can get this resolved - thank you!

Reply #54 Top

Just found this thread because I'm having problems with icons changing position when I use my KVM switch. I'm using Fences 6.46 but I can't see the "Store my layout on a per-monitor-configuration basis" option. Should that option still be present on the Layout tab?