Criar ou editar o arquivo Sms_def.mof

Aplica-se a: Microsoft BitLocker Administration and Monitoring 2.0

Para habilitar os computadores clientes para relatar detalhes de conformidade do BitLocker por meio dos relatórios do MBAM Configuration Manager, será preciso criar ou editar o arquivo Sms_def.mof.

Se você estiver usando o System Center 2012 Configuration Manager, será preciso criar o arquivo.

No Configuration Manager 2007, o arquivo já existe, portanto, você somente precisa editá-lo. Não substitua o arquivo existente.

Nas seguintes seções, complete as instruções correspondentes à versão do Configuration Manager que está usando.

Para criar o arquivo Sms_def.mof para System Center 2012 Configuration Manager

  1. No Servidor do Configuration Manager, navegue até o local onde precisa criar o arquivo Sms_def.mof, por exemplo, a Área de Trabalho.

  2. Crie um arquivo de texto chamado Sms_def.mof e copie o seguinte código para preencher o arquivo com as seguintes classes do MBAM do 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. Importe o arquivo Sms_def.mof procedendo da seguinte forma:

    1. Abra o console do System Center 2012 Configuration Manager e selecione a guia Administração.

    2. Na guia Administração, selecione Configurações do Cliente.

    3. Clique com o botão direito do mouse em Iniciar e depois selecione Configurações do Cliente Padrão.

    4. Na janela Configurações Padrão, selecione Inventário de Hardware.

    5. Clique em Definir Classes e depois em Importar.

    6. No navegador exibido, selecione seu arquivo .mof e depois clique em Abrir. A janela Resumo da Importação é aberta.

    7. Na janela Resumo da Importação, verifique se a opção de importar classes de inventário de hardware e configurações de classe está selecionada e clique em Importar.

    8. Nas janelas Classes de Inventário de Hardware e Configurações Padrão, clique em OK.

  4. Habilite a classe Win32_Tpm como a seguir:

    1. Abra o console do System Center 2012 Configuration Manager e selecione a guia Administração.

    2. Na guia Administração, selecione Configurações do Cliente.

    3. Clique com o botão direito do mouse em Iniciar e depois selecione Configurações do Cliente Padrão.

    4. Na janela Configurações Padrão, selecione Inventário de Hardware.

    5. Clique em Definir Classes.

    6. Na janela principal, role para baixo e selecione a classe TPM (Win32_Tpm).

    7. Em TPM, verifique se a propriedade SpecVersion está selecionada.

    8. Nas janelas Classes de Inventário de Hardware e Configurações Padrão, clique em OK.

Para editar o arquivo sms_def.mof para o Configuration Manager 2007

  1. No Servidor do Configuration Manager, navegue até o local do arquivo sms_def.mof:

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

    Em uma instalação padrão, o local de instalação é %systemdrive% \Program Files (x86)\Microsoft Configuration Manager.

  2. Copie o seguinte código e anexe-o ao arquivo Sms_def.mof para adicionar as seguintes classes obrigatórias do MBAM ao arquivo:

    //===================================================
    
    // 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. Modifique a classe Win32_Tpm como a seguir:

    • Defina SMS_REPORT como TRUE nos atributos de classe.

    • Defina SMS_REPORT como TRUE no atributo de classe SpecVersion.

Consulte Também

Conceitos

Implantando o MBAM com o Configuration Manager

Outros Recursos

Como criar ou editar os arquivos mof

-----
Você pode saber mais sobre o MDOP na Biblioteca do TechNet, pesquisar por solução de problemas no TechNet Wiki ou nos seguir no Facebook ou Twitter.
-----