Screen resolution Change to high

Yes, exactly. This is what I ended up changing it to:

parameter "DesiredScreenWidth" = "1024"
parameter "DesiredScreenHeight" = "768"
parameter "DesiredRefreshRate" = "60"
parameter "SessionId" = "{unique value of session ids of (current users;logged on users) whose (not remote of it)}"

if {(parameter "DesiredScreenWidth",parameter "DesiredScreenHeight", parameter "DesiredRefreshRate") != (string value of property "CurrentHorizontalResolution" of it, string value of property "CurrentVerticalResolution" of it, string value of property "CurrentRefreshRate" of it) of select object "CurrentHorizontalResolution,CurrentVerticalResolution,CurrentRefreshRate from Win32_VideoController" of wmi}
	waithidden psexec -acceptEula -h -i {parameter "SessionId"} chgres.exe {parameter "DesiredScreenWidth"} {parameter "DesiredScreenHeight"} refreshrate={parameter "DesiredRefreshRate"}
endif

P.S - I tried using the “metric” relevance you referenced in Change Screen Resolution - Policy Action but for whatever reason it didn’t seem to reliably report the current resolution as I was changing it back and forth during testing.

I also got rid of the “-c” argument for psexec, I realized it doesn’t really apply since psexec is calling the exe on the same device. It was a leftover artifact of when it used to be a command called from another device.

1 Like