Créer ou modifier le fichier Sms_def.mof

S'applique à: Microsoft BitLocker Administration and Monitoring 2.0

Pour permettre aux ordinateurs clients de créer des rapports sur les détails de la conformité BitLocker via les rapports Configuration Manager de MBAM; vous devez créer ou modifier le fichier Sms_def.mof.

Si vous utilisez System Center 2012 Configuration Manager, vous devez créer le fichier.

Dans Configuration Manager 2007, le fichier existe déjà. Il vous suffit de le modifier. Ne pas remplacer le fichier existant.

Dans les sections suivantes, suivez les instructions qui correspondent à la version de Configuration Manager que vous utilisez.

Pour créer le fichier Sms_def.mof pour System Center 2012 Configuration Manager

  1. Sur le serveur Configuration Manager, accédez à l'emplacement où vous devez créer le fichier Sms_def.mof, par exemple, le bureau.

  2. Créez un fichier texte appelé Sms_def.mof et copiez le code suivant dans le fichier Sms_def.mof pour y intégrer les classes MBAMsuivantes :

    //===================================================
    
    // Microsoft BitLocker Administration and Monitoring 
    
    //===================================================
    
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("Win32_BitLockerEncryptionDetails", NOFAIL)
    
    [ SMS_Report (TRUE),
    
      SMS_Group_Name ("BitLocker Encryption Details"),
    
      SMS_Class_ID ("MICROSOFT|BITLOCKER_DETAILS|1.0")]
    
    class Win32_BitLockerEncryptionDetails : SMS_Class_Template
    
    {
    
        [ SMS_Report (TRUE), key ]
    
        String     DeviceId;
    
        [ SMS_Report (TRUE) ]
    
        String     BitlockerPersistentVolumeId;
    
        [ SMS_Report (TRUE) ]
    
        String     MbamPersistentVolumeId;
    
        [ SMS_Report (TRUE) ]
    
        //UNKNOWN = 0, OS_Volume = 1, FIXED_VOLUME = 2, REMOVABLE_VOLUME = 3
    
        SInt32     MbamVolumeType;
    
        [ SMS_Report (TRUE) ]
    
        String     DriveLetter;
    
        [ SMS_Report (TRUE) ]
    
        //VOLUME_NOT_COMPLIANT = 0, VOLUME_COMPLIANT = 1, NOT_APPLICABLE = 2
    
        SInt32     Compliant;
    
        [ SMS_Report (TRUE) ]
    
        SInt32     ReasonsForNonCompliance[];
    
        [ SMS_Report (TRUE) ]
    
        SInt32     KeyProtectorTypes[];
    
        [ SMS_Report (TRUE) ]
    
        SInt32     EncryptionMethod;
    
        [ SMS_Report (TRUE) ]
    
        SInt32     ConversionStatus;
    
        [ SMS_Report (TRUE) ]
    
        SInt32     ProtectionStatus;
    
        [ SMS_Report (TRUE) ]
    
        Boolean     IsAutoUnlockEnabled;
    
    };
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    
    #pragma deleteclass("Win32Reg_MBAMPolicy", NOFAIL)
    
    [ SMS_Report(TRUE),
    
      SMS_Group_Name("BitLocker Policy"),
    
      SMS_Class_ID("MICROSOFT|MBAM_POLICY|1.0")]
    
    
    Class Win32Reg_MBAMPolicy: SMS_Class_Template
    
    {
    
        [SMS_Report(TRUE),key]
    
        string KeyName;
    
    
        //General encryption requirements
    
        [SMS_Report(TRUE)]
    
        UInt32    OsDriveEncryption;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDriveEncryption;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    EncryptionMethod;
    
    
        //Required protectors properties
    
        [ SMS_Report (TRUE) ]
    
        UInt32    OsDriveProtector;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDriveAutoUnlock;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDrivePassphrase;
    
    
        //MBAM agent fields
    
        //Policy not enforced (0), enforced (1), pending user exemption request (2) or exempted user (3)
    
        [SMS_Report(TRUE)]
    
        Uint32    MBAMPolicyEnforced;
    
        [SMS_Report(TRUE)]
    
        string    LastConsoleUser;
    
        //Date of the exemption request of the last logged on user,
    
        //or the first date the exemption was granted to him on this machine.
    
        [SMS_Report(TRUE)]
    
        datetime  UserExemptionDate;
    
        //Errors encountered by MBAM agent.
    
        [ SMS_Report (TRUE) ]
    
        UInt32    MBAMMachineError;
    
        [ SMS_Report (TRUE) ]
    
        string    EncodedComputerName;
    
    };
    
    
    //Read Win32_OperatingSystem.SKU WMI property in a new class - because SKU is not available before Vista.
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("CCM_OperatingSystemExtended", NOFAIL)
    
    [ SMS_Report     (TRUE),
    
      SMS_Group_Name ("Operating System Ex"),
    
      SMS_Class_ID   ("MICROSOFT|OPERATING_SYSTEM_EXT|1.0") ]
    
    class CCM_OperatingSystemExtended : SMS_Class_Template
    
    {
    
        [SMS_Report (TRUE), key ]
    
            string     Name;
    
        [SMS_Report (TRUE) ]
    
            uint32     SKU;
    
    };
    
    
    //Read Win32_ComputerSystem.PCSystemType WMI property in a new class - because PCSystemType is not available before Vista.
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("CCM_ComputerSystemExtended", NOFAIL)
    
    [ SMS_Report     (TRUE),
    
      SMS_Group_Name ("Computer System Ex"),
    
      SMS_Class_ID   ("MICROSOFT|COMPUTER_SYSTEM_EXT|1.0") ]
    
    class CCM_ComputerSystemExtended : SMS_Class_Template
    
    {
    
        [SMS_Report (TRUE), key ]
    
        string     Name;
    
        [SMS_Report (TRUE) ]
    
        uint16     PCSystemType;
    
    };
    
    //=======================================================
    
    // Microsoft BitLocker Administration and Monitoring end
    
    //=======================================================
    
  3. Importer le fichier Sms_def.mof en procédant comme suit :

    1. Ouvrez la console System Center 2012 Configuration Manager et sélectionnez l'onglet Administration.

    2. Dans l'onglet Administration, sélectionnez Paramètres Client.

    3. Cliquez avec le bouton droit sur Paramètres client par défaut, puis sélectionnez Propriétés.

    4. Dans la fenêtre Paramètres par défaut, sélectionnez Inventaire matériel.

    5. Cliquez sur Définir des classes, puis cliquez sur Importer.

    6. Dans le navigateur qui s'ouvre, sélectionnez votre fichier .mof, puis cliquez sur Ouvrir. La fenêtre Résumé d'importation s'ouvre.

    7. Dans la fenêtre Résumé d'importation, assurez-vous que l'option permettant d'importer des classes d'inventaire matériel et des paramètres de classe est bien sélectionnée, puis cliquez sur Importer.

    8. Dans les fenêtres Classes d'inventaire matériel et Paramètres par défaut, cliquez sur OK.

  4. Activez la classe Win32_Tpm comme suit :

    1. Ouvrez la console System Center 2012 Configuration Manager et sélectionnez l'onglet Administration.

    2. Dans l'onglet Administration, sélectionnez Paramètres client.

    3. Cliquez avec le bouton droit sur Paramètres client par défaut, puis sélectionnez Propriétés.

    4. Dans la fenêtre Paramètres par défaut, sélectionnez Inventaire matériel.

    5. Cliquez sur Déf. classes.

    6. Dans la fenêtre principale, faites défiler vers le bas, puis sélectionnez la classe TPM (Win32_Tpm).

    7. Dans TPM, assurez-vous que la propriété Version des spécifications est sélectionnée.

    8. Dans les fenêtres Classes d'inventaire matériel et Paramètres par défaut, cliquez sur OK.

Pour modifier le fichier sms_def.mof pour Configuration Manager 2007

  1. Sur le serveur Configuration Manager, accédez à l'emplacement du fichier sms_def.mof :

    <CMInstallLocation>\Inboxes\clifiles.src\hinv\

    Dans une installation par défaut, l'emplacement d'installation est %systemdrive% \Program Files (x86)\Microsoft Configuration Manager.

  2. Copiez le code suivant puis ajoutez le fichier Sms_def.mof pour y ajouter les classes MBAM suivantes :

    //===================================================
    
    // Microsoft BitLocker Administration and Monitoring 
    
    //===================================================
    
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("Win32_BitLockerEncryptionDetails", NOFAIL)
    
    [ SMS_Report (TRUE),
    
      SMS_Group_Name ("BitLocker Encryption Details"),
    
      SMS_Class_ID ("MICROSOFT|BITLOCKER_DETAILS|1.0")]
    
    class Win32_BitLockerEncryptionDetails : SMS_Class_Template
    
    {
    
        [ SMS_Report (TRUE), key ]
    
        String     DeviceId;
    
        [ SMS_Report (TRUE) ]
    
        String     BitlockerPersistentVolumeId;
    
        [ SMS_Report (TRUE) ]
    
        String     MbamPersistentVolumeId;
    
        [ SMS_Report (TRUE) ]
    
        //UNKNOWN = 0, OS_Volume = 1, FIXED_VOLUME = 2, REMOVABLE_VOLUME = 3
    
        SInt32     MbamVolumeType;
    
        [ SMS_Report (TRUE) ]
    
        String     DriveLetter;
    
        [ SMS_Report (TRUE) ]
    
        //VOLUME_NOT_COMPLIANT = 0, VOLUME_COMPLIANT = 1, NOT_APPLICABLE = 2
    
        SInt32     Compliant;
    
        [ SMS_Report (TRUE) ]
    
        SInt32     ReasonsForNonCompliance[];
    
        [ SMS_Report (TRUE) ]
    
        SInt32     KeyProtectorTypes[];
    
        [ SMS_Report (TRUE) ]
    
        SInt32     EncryptionMethod;
    
        [ SMS_Report (TRUE) ]
    
        SInt32     ConversionStatus;
    
        [ SMS_Report (TRUE) ]
    
        SInt32     ProtectionStatus;
    
        [ SMS_Report (TRUE) ]
    
        Boolean     IsAutoUnlockEnabled;
    
    };
    
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("Win32Reg_MBAMPolicy", NOFAIL)
    
    [ SMS_Report(TRUE),
    
      SMS_Group_Name("BitLocker Policy"),
    
      SMS_Class_ID("MICROSOFT|MBAM_POLICY|1.0"),
    
      SMS_Context_1("__ProviderArchitecture=32|uint32"),
    
      SMS_Context_2("__RequiredArchitecture=true|boolean")]
    
    Class Win32Reg_MBAMPolicy: SMS_Class_Template
    
    {
    
        [SMS_Report(TRUE),key]
    
        string KeyName;
    
    
        //General encryption requirements
    
        [SMS_Report(TRUE)]
    
        UInt32    OsDriveEncryption;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDriveEncryption;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    EncryptionMethod;
    
    
        //Required protectors properties
    
        [ SMS_Report (TRUE) ]
    
        UInt32    OsDriveProtector;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDriveAutoUnlock;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDrivePassphrase;
    
    
        //MBAM Agent fields
    
        //Policy not enforced (0), enforced (1), pending user exemption request (2) or exempted user (3)
    
        [SMS_Report(TRUE)]
    
        Uint32    MBAMPolicyEnforced;
    
        [SMS_Report(TRUE)]
    
        string    LastConsoleUser;
    
        //Date of the exemption request of the last logged on user,
    
        //or the first date the exemption was granted to him on this machine.
    
        [SMS_Report(TRUE)]
    
        datetime  UserExemptionDate;
    
        //Errors encountered by MBAM agent.
    
        [ SMS_Report (TRUE) ]
    
        UInt32    MBAMMachineError;
    
        // Encoded Computer Name
    
        [ SMS_Report (TRUE) ]
    
        string    EncodedComputerName;
    
    };
    
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("Win32Reg_MBAMPolicy_64", NOFAIL)
    
    [ SMS_Report(TRUE),
    
      SMS_Group_Name("BitLocker Policy"),
    
      SMS_Class_ID("MICROSOFT|MBAM_POLICY|1.0"),
    
      SMS_Context_1("__ProviderArchitecture=64|uint32"),
    
      SMS_Context_2("__RequiredArchitecture=true|boolean")]
    
    Class Win32Reg_MBAMPolicy_64: SMS_Class_Template
    
    {
    
        [SMS_Report(TRUE),key]
    
        string KeyName;
    
    
        //General encryption requirements
    
        [SMS_Report(TRUE)]
    
        UInt32    OsDriveEncryption;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDriveEncryption;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    EncryptionMethod;
    
    
        //Required protectors properties
    
        [ SMS_Report (TRUE) ]
    
        UInt32    OsDriveProtector;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDriveAutoUnlock;
    
        [ SMS_Report (TRUE) ]
    
        UInt32    FixedDataDrivePassphrase;
    
    
        //MBAM Agent fields
    
        //Policy not enforced (0), enforced (1), pending user exemption request (2) or exempted user (3)
    
        [SMS_Report(TRUE)]
    
        Uint32    MBAMPolicyEnforced;
    
        [SMS_Report(TRUE)]
    
        string    LastConsoleUser;
    
        //Date of the exemption request of the last logged on user,
    
        //or the first date the exemption was granted to him on this machine.
    
        [SMS_Report(TRUE)]
    
        datetime  UserExemptionDate;
    
        //Errors encountered by MBAM agent.
    
        [ SMS_Report (TRUE) ]
    
        UInt32    MBAMMachineError;
    
        // Encoded Computer Name
    
        [ SMS_Report (TRUE) ]
    
        string    EncodedComputerName;
    
    };
    
    
    //Read Win32_OperatingSystem.SKU WMI property in a new class - because SKU is not available before Vista.
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("CCM_OperatingSystemExtended", NOFAIL)
    
    [ SMS_Report     (TRUE),
    
      SMS_Group_Name ("Operating System Ex"),
    
      SMS_Class_ID   ("MICROSOFT|OPERATING_SYSTEM_EXT|1.0") ]
    
    class CCM_OperatingSystemExtended : SMS_Class_Template
    
    {
    
        [SMS_Report (TRUE), key ]
    
            string     Name;
    
        [SMS_Report (TRUE) ]
    
            uint32     SKU;
    
    };
    
    
    //Read Win32_ComputerSystem.PCSystemType WMI property in a new class - because PCSystemType is not available before Vista.
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    #pragma deleteclass("CCM_ComputerSystemExtended", NOFAIL)
    
    [ SMS_Report     (TRUE),
    
      SMS_Group_Name ("Computer System Ex"),
    
      SMS_Class_ID   ("MICROSOFT|COMPUTER_SYSTEM_EXT|1.0") ]
    
    class CCM_ComputerSystemExtended : SMS_Class_Template
    
    {
    
        [SMS_Report (TRUE), key ]
    
        string     Name;
    
        [SMS_Report (TRUE) ]
    
        uint16     PCSystemType;
    
    };
    
    
    //=======================================================
    
    // Microsoft BitLocker Administration and Monitoring end
    
    //=======================================================
    
  3. Modifiez la classe Win32_Tpm comme suit :

    • Attribuez la valeur TRUE à SMS_REPORT dans les attributs de classe.

    • Attribuez la valeur TRUE à SMS_REPORT dans l'attribut de propriété SpecVersion.

Voir aussi

Concepts

Déploiement de MBAM avec Configuration Manager

Autres ressources

Création ou modification des fichiers mof

-----
Vous pouvez obtenir davantage d'informations sur MDOP dans la Librairie TechNet, rechercher des solutions de dépannage dans le TechNet Wiki ou nous suivre sur Facebook ou Twitter.
-----