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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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?

Answered 05/18/2012 by: DanHarmon
Blue Belt

Please log in to comment
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

Answered 09/24/2012 by: awingren
Eighth Degree Black Belt

Please log in to comment
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

Answered 09/28/2012 by: awingren
Eighth Degree Black Belt

  • 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.
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share