Can someone help me with a script that helps setting the screen resolution and scaling to 1920 X 1080 125%. This has to be set on runtime to make sure the screen resolution is not changed.
I’ve seen the route of orchestrator settings but wanted to know if this can be done programmatically.
You can change screen resolution to 1920×1080 at runtime using a simple PowerShell script but Windows does not allow DPI scaling (125%) to update without logging off. Resolution can change immediately, but scaling requires a logout to take effect The most reliable way in UiPath is still using Robot runtime settings in Orchestrator.
multimonitortool-x64.zip (228.5 KB)
Use this tool. It then allows you to run CMD’s like :
Common commands
/enable : Enables a specific monitor.
/disable : Disables a specific monitor.
/setPrimary : Sets the primary display.
/SetScale : Sets the display scaling (e.g., MultiMonitorTool.exe /SetScale 1 150).
/SetOrientation : Sets the orientation of a monitor (e.g., portrait, landscape).
/SaveConfig “path” : Saves the current monitor configuration to a file.
/LoadConfig “path” : Loads a previously saved configuration from a file.
/Switch : Toggles the enabled state of a monitor.
/MoveWindow : Moves windows to different monitors. You can specify criteria like process name, title, or window class.
Example commands
Disable monitor 2: MultiMonitorTool.exe /disable 2
Set monitor 1 as primary: MultiMonitorTool.exe /setPrimary 1
Save the current configuration to a file: MultiMonitorTool.exe /SaveConfig "C:\MyMonitorLayout.cfg"
Load a saved configuration: MultiMonitorTool.exe /LoadConfig "C:\MyMonitorLayout.cfg"