Solved

Screen Resolution

Posted on 2015-02-24
5
157 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 51

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 82

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 82

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now