Condividi tramite


Creare o modificare il file Sms_def.mof

Si applica a: Microsoft BitLocker Administration and Monitoring 2.0

Per consentire ai computer client di restituire i dati di conformità BitLocker tramite i report di Configuration Manager di MBAM, è necessario creare o modificare il file Sms_def.mof.

Se invece si utilizza System Center 2012 Configuration Manager, è necessario creare il file.

Il file esiste già in Configuration Manager 2007, pertanto è necessario modificarlo. Non sovrascrivere il file esistente.

Nelle sezioni seguenti, completare le procedure corrispondenti alla versione di Configuration Manager in uso.

Per creare il file Sms_def.mof per System Center 2012 Configuration Manager

  1. Nel server di Configuration Manager, passare al percorso in cui è stato creato il file Sms_def.mof, ad esempio il desktop.

  2. Creare un file di testo denominato Sms_def.mof e copiare il codice seguente per popolare il file con le seguenti classi di MBAM di Sms_def.mof:

    //===================================================
    
    // 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. Importare il file Sms_def.mof effettuando le seguenti operazioni:

    1. Aprire la console di System Center 2012 Configuration Manager e selezionare la scheda Amministrazione.

    2. Nella scheda Amministrazione, selezionare Impostazioni client.

    3. Fare clic con il pulsante destro del mouse su Impostazioni client predefinite e quindi selezionare Proprietà.

    4. Nella finestra Impostazioni predefinite, selezionare Inventario hardware.

    5. Fare clic su Imposta classi, quindi fare clic su Importa.

    6. Nel browser che viene aperto, selezionare il file .mof e quindi fare clic su Apri. Viene aperta la finestra Riepilogo importazione.

    7. Nella finestra Riepilogo importazione, assicurarsi che l'ozione per importare sia le classi di inventario hardware che le impostazioni delle classi sia selezionata e quindi fare clic su Importa.

    8. Nella finestra Classi di inventario hardware e nella finestra Impostazioni predefinite, fare clic su OK.

  4. Abilitare la classe Win32_Tpm come illustrato di seguito:

    1. Aprire la console di System Center 2012 Configuration Manager e selezionare la scheda Amministrazione.

    2. Nella scheda Amministrazione, selezionare Impostazioni client.

    3. Fare clic con il pulsante destro del mouse su Impostazioni client predefinite e quindi selezionare Proprietà.

    4. Nella finestra Impostazioni predefinite, selezionare Inventario hardware.

    5. Fare clic su Imposta classi.

    6. Nella finestra principale, scorrere verso il basso e quindi selezionare la classe TPM (Win32_Tpm).

    7. In TPM, assicurarsi che la proprietà Versione specifica sia selezionata.

    8. Nella finestra Classi di inventario hardware e nella finestra Impostazioni predefinite, fare clic su OK.

Per modificare il file sms_def.mof per Configuration Manager 2007

  1. Nel server di Configuration Manager, passare al percorso del file sms_def.mof:

    <PercorsoInstallazioneCM>\Inbox\clifiles.src\hinv\

    In un'installazione predefinita, il percorso di installazione è %unitàsistema%\Programmi(x86)\Microsoft Configuration Manager.

  2. Copiare il codice seguente e quindi aggiungerlo al file Sms_def.mof per aggiungere le seguenti classi necessarie di MBAM al file:

    //===================================================
    
    // 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. Modificare la classe Win32_Tpm come illustrato di seguito:

    • Impostare SMS_REPORT su TRUE negli attributi di classe.

    • Impostare SMS_REPORT su TRUE nell'attributo di proprietà Versione specifica.

Vedere anche

Concetti

Distribuzione di MBAM con Configuration Manager

Altre risorse

Come creare o modificare i file MOF

-----
Per ulteriori informazioni su MDOP, è possibile accedere alla libreria TechNet, cercare contenuto sulla risoluzione di problemi in TechNet Wiki o tenersi informati tramite Facebook o Twitter.
-----