Click here to Skip to main content
12,405,303 members (68,877 online)
Rate this:
Please Sign up or sign in to vote.
See more: PowerShell
Is there a way to set the screen resolution using the PowerShell cmdlts?

Posted 30-Apr-13 14:11pm
Sergey Alexandrovich Kryukov 30-Apr-13 20:29pm
Why? If your script does that, most users will consider this highly intrusive. Never do it. It should be done by the user and only by the user. Your application should be able to live with that.
priypavan 30-Apr-13 20:37pm
I am tagged to one of the high resolution devices(100 no.s) in my assignment, I need to validate my application on that device, the text and images are too small on that device but not on the other hardware which I got for application validation. I re-image these(100) machines at least 5 times in day and set the resolution settings manually which takes lot of time, so I decided to automate this resolution settings to reduce my efforts hence I need to some PowerShell cmdlt to automate it as part of re-imaging the device.
Wrong approach. You really need to work with the resolution provide by the system. There are a number of ways to image big number of machines automatically: cloning, unattended installation, custom system distribution, etc. You did not really explain do you re-image a lot, even if it is really needed...
ThePhantomUpvoter 30-Apr-13 21:24pm
Maybe you should post it as the answer. Would be good too try; I don't feel interested enough to try. This is just P/Invoke of Windows API...
priypavan 1-May-13 16:22pm
thanks you, I already gave a try to this, it works as expected but still I am looking for simple PowerShell cmd which would be more convenient to integrate in to my process.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100