Déployer Windows 7 avec MDT 2010, Partie 4 – Utilisation la base de donnée dans MDT

bonjourThis post is the fourth and final post in a 4-part series for our French-speaking readers on how to use MDT 2010 to deploy Windows 7 in your environment. The series is written by Yannick Plavonil, a Microsoft MVP based in Quebec. You can find this and more on his own blog – Revue du Geek.

Let me know what other topics you would like covered in the future. Leave a comment or send an email by clicking on the link to the right of this post.

DamirB-BlogSignature_thumb[1]_thumb_thumb


Objectif:

Cette derniere partie explique brievement comment utiliser la base de donnée dans MDT 2010.

Pré-requis:

Creation et utilisation de la base donnée

Avant de pouvoir utiliser notre instance SQLExpress, il reste quelque configuration à faire dans la console Deployment Workbench.

Creation de la BD de déploiement

  1. Sur Deployment Workbench > MDT Build Prod > Advanced > clic droit Database > New Database
  2. Sur l’assistant New DB, dans SQL Server Details, entrer les informations de notre serveur:
    a. SQL Server Name: MDT01
    b. Instance: SQLEXPRESS
    c. Port: laisser vide
    d. Network librairy: Named Pipes
  3. Sur la page Database, choisir Create a new database, tapez MDT dans le champ.
  4. Sur la page SQL Share, dans le champ SQL Share, tapez Logs$ > Finish.

Configuration des permissions pour la base de donnée

Avec la console SQL Management Studio, creer un Security Login pour le compte Labyp\BuildAccount et ajouter les permissions db_datareader sur la base MDT.

Configuration des propriétés du point de déploiement

  1. clic droit sur MDT Build Prod > Properties.

  2. Sur l’onglet Rules, modifier le CustomSettings.ini pour ajouter les infos sur la bd.
    [Settings]
    Priority=CSettings, CRoles, RApps, Default

    [Default]
    _SMSTSORGNAME=LABYP
    OSInstall=Y
    SkipAppsOnUpgrade=NO
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipComputerName=YES
    SkipDomainMembership=YES
    SkipUserData=YES
    UserDataLocation=AUTO
    SkipLocaleSelection=YES
    SkipTaskSequence=NO
    SkipTimeZone=YES
    SkipApplications=YES
    SkipBitLocker=YES
    SkipSummary=YES
    SkipBDDWelcome=YES
    SkipCapture=YES
    SkipFinalSummary=NO
    TimeZone=035
    TimeZoneName=Eastern Standard Time

    JoinDomain=LABYP
    DomainAdmin=LABYP\JoinAccount
    DomainAdminPassword=Passw0rd
    MachineObjectOU=ou=NewComputers,dc=labyp,dc=com

    WSUSServer=https://MDT01

    [CSettings]
    SQLServer=MDT01
    Instance=SQLEXPRESS
    Database=MDT
    Netlib=DBNMPNTW
    SQLShare=Logs$
    Table=ComputerSettings
    Parameters=UUID, AssetTag, SerialNumber, MacAddress
    ParameterCondition=OR

    [CRoles]
    SQLServer=MDT01
    Instance=SQLEXPRESS
    Database=MDT
    Netlib=DBNMPNTW
    SQLShare=Logs$
    Table=ComputerRoles
    Parameters=UUID, AssetTag, SerialNumber, MacAddress
    ParameterCondition=OR

    [RApps]
    SQLServer=MDT01
    Instance=SQLEXPRESS
    Database=MDT
    Netlib=DBNMPNTW
    SQLShare=Logs$
    Table=RoleApplications
    Parameters=Role
    Order=Sequence

Creer une entrée dans la BD pour faire un exemple

  1. Sur Deployment Workbench > MDT Build Prod > Advanced > Database > clic droit Computers.
    a. Description: MLTest001
    b. MacAddress: entrer ici la adresse mac d’un pc, 00:00:00:00:00:00
    c. Sur l’onglet Details > OSDComputerName: MLTest001
  2. Maintenant si on lance le déploiement de la machine avec l’adresse mac qui correspond alors elle aura le nom MLTest001.

Exemple pour des applications en fonction des roles

Commencer par ajouter une application dans Deployment Workbench. ici dans mon exemple j’utilise Siverlight.

  1. Sur Deployment Workbench > MDT Build Prod > clic droit Applications > New Application > utilisez la configuration:
    a. Application with source files
    b. Publisher: Microsoft
    c. Application name: Silverlight
    d. Version: 4
    d. Source Directory: Z:\Logiciels\Silverlight
    f. Specify the name of the directory that should be created: Microsoft Silverlight
    g. command line: silverlight.exe /q
    h. Working directory: .\Applications\Silverlight
  2. Creer un role dans la bd.
    a. Sur Deployment Workbench > MDT Build Prod > Advanced > Database > clic droit Role > Creer un role.
    b. Role name: Standard
    c. Applications: Microsoft Silverlight
  3. Maintenant allons modifier la machine qu’on a précédement configuré dans la BD.
    a. Sur Deployment Workbench > MDT Build Prod > Advanced > Database > Computers > double clic sur MLTest001 et ajouter:
    a. Roles: Standard
  4. Maintenant si on redémarre le déploiement pour cette meme machine, elle aura le nom défini MLTest001 et l’application Silverlight sera installé parce qu’elle fait partie du role Standard.

Donc voici un exemple qui montre comment utiliser la base de donnée dans MDT.