Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

[MDT 2010] Set screen resolution dynamically

- - - - -

  • Please log in to reply
4 replies to this topic

#1
bjhs

bjhs

    Newbie

  • Member
  • 16 posts
  • Joined 12-August 10
  • OS:XP Pro x86
  • Country: Country Flag
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!


How to remove advertisement from MSFN

#2
bjhs

bjhs

    Newbie

  • Member
  • 16 posts
  • Joined 12-August 10
  • OS:XP Pro x86
  • Country: Country Flag
Based on this tuturial:
http://blogs.technet...m-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, 27 August 2010 - 12:54 AM.


#3
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,252 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag
Yes.
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#4
arwidmark

arwidmark

    Member

  • Member
  • PipPip
  • 105 posts
  • Joined 22-December 05
  • OS:none specified
  • Country: Country Flag
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, 27 August 2010 - 08:32 AM.

Regards

Johan Arwidmark
Microsoft MVP - Setup / Deployment

#5
MarshalAnson

MarshalAnson
  • Member
  • 1 posts
  • Joined 25-October 11
  • OS:Windows 7 x86
  • Country: Country Flag
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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN