Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
bjhs

[MDT 2010] Set screen resolution dynamically

Recommended Posts

bjhs    0

Hello!

I'm using MDT 2010 to deploy some workstations.

I'm also using the MDT database to apply the correct name to the machine based on the mac address of the machine.

However, during the population of the DB, I also added the default resolution for each machine.

My problem now rests on how to query the DB for that information on the customsettings.ini.

The variables to alter are for example:

BitsPerPel=32

VRefresh=60

XResolution=1280

YResolution=1024

This works and are also set in the DB, so, is there a way to query the DB for such details?

Has anyone worked on something close to this?

Thanks in advance!

Share this post


Link to post
Share on other sites
bjhs    0

Based on this tuturial:

http://blogs.technet.com/b/mmodin/archive/2010/02/03/how-to-extend-the-mdt-2010-database-with-custom-settings.aspx

The answer to my problem CAN be as simples as referencing as a Property the campus that I want like for example:

Property=XResolution,YResolution

and then do:

XResolution=%XResolution%

YResolution=%YResolution%

Can't test it now as a image is being built and it will take a while, but can it be that simple?

Regards

Edited by bjhs

Share this post


Link to post
Share on other sites
arwidmark    0

Setting per computer is fine, but I normally use the make / model to set screen resolution on a per model basis rather than on each machine. Anyway, these rules configure MDT to read the database for Computer Settings and Make/Model Settings

[settings]

Priority=CSettings, MMSettings, Default

[CSettings]

SQLServer=MDT01

Instance=SQLEXPRESS

Database=MDT

Netlib=DBNMPNTW

SQLShare=Logs$

Table=ComputerSettings

Parameters=UUID, AssetTag, SerialNumber, MacAddress

ParameterCondition=OR

[MMSettings]

SQLServer=MDT01

Instance=SQLEXPRESS

Database=MDT

Netlib=DBNMPNTW

SQLShare=Logs$

Table=MakeModelSettings

Parameters=Make, Model

/ Johan

Edited by arwidmark

Share this post


Link to post
Share on other sites

Johan,

Once I've entered this into the customsettings.ini how do I get it to apply a screen resolution to that model number? Thanks!

Setting per computer is fine, but I normally use the make / model to set screen resolution on a per model basis rather than on each machine. Anyway, these rules configure MDT to read the database for Computer Settings and Make/Model Settings

[settings]

Priority=CSettings, MMSettings, Default

[CSettings]

SQLServer=MDT01

Instance=SQLEXPRESS

Database=MDT

Netlib=DBNMPNTW

SQLShare=Logs$

Table=ComputerSettings

Parameters=UUID, AssetTag, SerialNumber, MacAddress

ParameterCondition=OR

[MMSettings]

SQLServer=MDT01

Instance=SQLEXPRESS

Database=MDT

Netlib=DBNMPNTW

SQLShare=Logs$

Table=MakeModelSettings

Parameters=Make, Model

/ Johan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×