Solved

Screen Resolution

Posted on 2015-02-24
5
164 Views
Last Modified: 2015-03-04
Hello,

Is there a way to set a screen resolution for a specific set of computers per GPO or PowerShell? I was trying to use a powershell scripts but still cannot get the script to work. Keep getting the error message "Failed To Change The Resolution".

I will attach both set of PowerShell Scripts.
SetRes.txt
Set-ScreenResolution.txt
0
Comment
Question by:dude02
  • 2
  • 2
5 Comments
 
LVL 52

Accepted Solution

by:
Joe Winograd, EE MVE earned 500 total points
ID: 40629167
I can't help you with those PowerShell scripts, but here's an idea that may help. I'm a huge fan of NirSoft's (free!) utilities, which I've been using for many years:
http://www.nirsoft.net/

One of them is NirCmd:
http://www.nirsoft.net/utils/nircmd.html

Scroll down to the bottom of that link for the download links. Note that there are separate ones for 32-bit and 64-bit.

There are so many things you can do with this — I suggest reading through all of it. I think you'll be impressed — I certainly am. Anyway, two of the options are "setdisplay" and "setprimarydisplay". The syntax, description, and examples from the Help file for those two options are below. The full Help file is at:
http://www.nirsoft.net/utils/nircmd2.html#using

Regards, Joe

setdisplay {monitor:index/name} [width] [height] [color bits] {refresh rate} {-updatereg} {-allusers}

Changes your display settings. The [width] and [height] parameters represents the number of pixels on your screen. The [color bits] parameter represents the number of colors shown on your screen (8 - 256 color, 16 - 16bit color, 24 - 24bit color, and so on). {refresh rate} is an optional parameter that specifies the monitor refresh rate. If you specify the {-updatereg} parameter, the new settings will be saved in the Registry. If you specify both {-updatereg} and {-allusers} parameters, the new settings will be saved in the Registry for all users.

If you have multiple monitors, you can use the optional monitor parameter, which specifies for which monitor you want to change the display settings. You can specify the monitor by index (0 for the first monitor, 1 for the second one, and so on) or by specifying a string in the system monitor name. The monitor name can be found in the Device manager of Windows: Right click on the monitor item, and then choose 'Properties'. The string displayed in the 'location' field is the monitor name.

Example:

setdisplay 800 600 24 -updatereg
setdisplay 1024 768 24 90
setdisplay 1024 768 8
setdisplay monitor:1 1024 768 24 90
setdisplay monitor:name1 1024 768 24 90

setprimarydisplay [Monitor index/name]

Set the primary monitor, for systems with multiple monitors only.

Example:
setprimarydisplay 1
setprimarydisplay 2
setprimarydisplay \\.\DISPLAY3
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40629176
Almost all flat screen monitors have the clearest display at their 'native resolution'.  Unless all the computers have the same monitor (and video card?), you are likely to be messing up the display by forcing them all to be the same.
0
 
LVL 4

Author Comment

by:dude02
ID: 40629193
Yes, these are Dell Laptop computers with the same video card. The native resolution will not work with a specific application. That is why I have to adjust the screen resolution.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40629232
That's an odd application.  Why doesn't somebody fix it instead?  I know, silly question.
0
 
LVL 4

Author Comment

by:dude02
ID: 40629244
True but that is never going to happen. Each laptop has a 1920x1080 default but I need to change that to 1440x900.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
A brief introduction to what I consider to be the best editor for PowerShell.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question