Sign in to follow this  
Followers 0
bjhs

[MDT 2010] Set screen resolution dynamically

5 posts in this topic

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!

0

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
Share on other sites

Yes.

0

Share this post


Link to post
Share on other sites

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
0

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

0

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.