/build/static/layout/Breadcrumb_cap_w.png

Screen Resolution Changer

Many customers have asked how to automatically change the screen resolution after a deployment of an operating system. It is mostly seen, that even when entering the screen resolution in the sysprep.inf or unattend.xml file, that once the video driver is installed, the resolution is changed.

I was asked to create a postinstall task for such an instance.
Here is the readme file.

Description:
This script is meant to allow the user to configure the resolution of a computer screen after deployment of an operating system.

Requirements:
This script should be run after the video driver is installed, as that process often changes the resolution.

Procedure:
There are 2 ways this script can be run.
1. Double click the application and choose a predefined x and y coordinate from the drop down menu, then click on "Set Resolution"
(If using as a postinstallation task on the K2000, just enter "rez_change.exe". The postinstalltion task will stop until this data is inputed).
2. Via commandline options where you will not be prompted for the resolution, unless you want to be.
From the commandline (or on the k2000 enter these commands in the commandline field):

/x: Use this switch to set the horizontal dimension of the screen
/y: Use this switch to set the vertical dimension of the screen
/manual:Use this switch to manually enter the dimensions of the screen in a dailog box

Examples:
a. rez_change.exe /x:1024 /y:768
(Sets resolution to 1024x768).

b. rez_change.exe /manual
user will be prompted to enter the dimentions of the x and y coordinates, then click on "Set Resolution"
The postinstalltion task will stop until this data is inputed.

Rez_Change Download

v.1 8/19/2011
-initial release with commandline options and dialog box.

**Known Issues**
None

0 Comments   [ + ] Show comments

Answers (3)

Posted by: awingren 11 years ago
8th Degree Black Belt
1

When I run this on an XP box it doesn't work correctly.

When I run a simple .bat script with this one line:
rez_change.exe /x:800 /y:600

I get the following error:

HRC Error
Unable to change screen resolution

Error function call:
ChangeDisplaySettingsEx 1

Error code:
-2(DISP_CHANGE_BADMODE)

Requested settings:

Width: 800
Height: 600
BitsPP: 32
Refresh Rate: 60


Comments:
  • This is odd... it works on my test XP machine when I run:

    rez_change.exe /x:1024 /y:768

    I get the same error (the one I specified above) when I try either of these:
    rez_change.exe /x:800 /y:600
    rez_change.exe /x:1280 /y:1024

    I can set both 800x600 and 1280x1024 manually without any problem. - awingren 11 years ago
Posted by: DanHarmon 11 years ago
Blue Belt
0

This isn't working for me, even on my desktop. Windows 7 x86.  Regardless how I run it (from desktop or scripted install) I get a pop-up for a moment, talking about control-alt-shift-R (too fast to read completely).  Either with or without command line parameters.

Any idea who the author is or how to contact them?

Posted by: awingren 11 years ago
8th Degree Black Belt
0

This works great.  Thanks, Corey!

Is there a way to have this reset resolution on two monitors in a dual monitor situation?

Thank you,
awingren

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ