27-08-19 08:19 AM
Answered! Go to Answer.
21-08-24 04:22 PM
I had this same question. None of the Methods I found on this thread helped. However There is a VBO in the Digital Exchange that is an update for the Environment Utility object. There was an existing object page for getting a screen resolution. Now there is one for setting the screen resolution. Having that update mentioned on this thread would have saved me time. So I'm paying it forward for anyone else who might be curious.
27-08-19 03:40 PM
You can execute a Powershell file from a batch file, but it needs to be run as Admin. To do this, you'll need to set it as a scheduled task in Windows.
https://docs.microsoft.com/en-us/powershell/module/servercore/set-displayresolution?view=win10-ps
Edit: Be aware that if you're using this on a VM without a physical display attached, it can only get up to 1280x800 when you're not connected to the system via RDP.
------------------------------
Ami Barrett
Lead RPA Software Developer
Solai & Cameron
America/Chicago
------------------------------
28-08-19 08:16 AM
28-08-19 08:56 AM
28-08-19 10:19 AM
21-08-24 04:22 PM
I had this same question. None of the Methods I found on this thread helped. However There is a VBO in the Digital Exchange that is an update for the Environment Utility object. There was an existing object page for getting a screen resolution. Now there is one for setting the screen resolution. Having that update mentioned on this thread would have saved me time. So I'm paying it forward for anyone else who might be curious.