- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-08-19 08:19 AM
Is it possible to change the screen resolution.
------------------------------
Kalpesh Gujrati
Consultant
EY India
Asia/Kolkata
------------------------------
Answered! Go to Answer.
Helpful Answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-08-19 08:16 AM
Thanks for the suggestion. 🙂
------------------------------
Kalpesh Gujrati
Consultant
EY India
Asia/Kolkata
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-08-19 08:56 AM
------------------------------
James Marsh
Technical Consultant
Blue Prism
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-08-19 10:19 AM
I tried to solve change of desktop resolution following these guides:
https://www.codeguru.com/columns/vb/using-visual-basic-to-change-screen-and-desktop-settings.html
https://social.msdn.microsoft.com/Forums/vstudio/en-US/6318a324-99ff-4368-87be-423ee96a8399/chaning-screen-resolutions-from-vbnet-application?forum=vbgeneral
http://pinvoke.net/default.aspx/user32/ChangeDisplaySettingsEx.html
... and a dozen further documents.
My code works without problems but it just dont do anything for unknown reasons.
Unfortunately the Powershell modul Set-Displayresolution is only available with Server Core and not with eg Windows 10.
I am now trying this: https://devblogs.microsoft.com/scripting/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell/
------------------------------
Walter Koller
Solution Manager
Erste Group IT International GmbH
Europe/Vienna
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
