MECM Bitlocker HelpDesk page doesn't show any recovery keys

Stefan 6 Reputation points
2022-06-29T11:18:31.113+00:00

Hi everyone,

we've got an issue with Bitlocker recovery keys after migrating our MECM Server from one VM (Server 2012 R2) to a new one (Server 2019) with the same name and IP-address.
Since we migrated the server with a fullbackup-recovery and did all the post actions that had to be done, we realized a problem with the MBAM HelpDesk website. The website can be accessed by all helpdesk-users and the search for recovery keys seems to be working fine, except the fact that there are no recovery keys shown in the "Drive Recovery Key" section:

216161-image.png

When we checked the database entries we can see, that there are all entries available and we can see, that the keyID has a dataset, too:

216132-image.png

We checked database access for all user- and service-accounts and can't find any problems with that. Even with db_owner rights for all accounts involved, there is no change in the behaviour.
Clients are able to update there keys in the database by the way, but we are not able to get the recovery keys.

We are thankful for every idea we can check out to resolve the problem.
Thanks ahead!

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,776 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Stefan 6 Reputation points
    2022-07-07T09:41:01.23+00:00

    Hi everyone,

    first of all, thanks for your help and your suggestions. With some help by "Computacenter", we were finally able to solve the problem.
    We needed to export the masterkey out of the old database and imported it again into our new database. After the successful migration of the server, we only did this with the bitlocker certificate, but missed the masterkey. If someone has the same problem in the future, just use the same procedure:

    1. Delete the bitlocker certificate in the NEW database (if it already had been imported like in our environment)
    2. Export masterkey from the OLD database with SQL query:

    USE CM_T01;
    OPEN MASTER KEY DECRYPTION BY PASSWORD = 'Bitlocker masterkey password';
    BACKUP MASTER KEY TO FILE = 'C:\Cert\CM_T01_master_key'
    ENCRYPTION BY PASSWORD = 'Bitlocker masterkey password';
    GO

    1. Import masterkey into the NEW database with SQL query:

    Use CM_T01
    RESTORE MASTER KEY FROM FILE = 'C:\Cert\CM_T01_master_key'
    DECRYPTION BY PASSWORD = 'Bitlocker masterkey password'
    ENCRYPTION BY PASSWORD = 'Bitlocker masterkey password'
    FORCE

    1. Import bitlocker certificate into NEW database with SQL query (as described in https://learn.microsoft.com/en-us/mem/configmgr/protect/deploy-use/bitlocker/encrypt-recovery-data):

    USE CM_T01
    IF NOT EXISTS (SELECT name FROM sys.symmetric_keys WHERE name = '##MS_DatabaseMasterKey##')
    BEGIN
    CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Bitlocker masterkey password'
    END

    IF NOT EXISTS (SELECT name from sys.certificates WHERE name = 'BitLockerManagement_CERT')
    BEGIN

    CREATE CERTIFICATE BitLockerManagement_CERT AUTHORIZATION RecoveryAndHardwareCore
    FROM FILE = 'C:\Cert\BitLockerManagement_CERT'
    WITH PRIVATE KEY ( FILE = 'C:\BitLockerManagement_CERT_KEY',
    DECRYPTION BY PASSWORD = 'Bitlocker exportkey password')

    GRANT CONTROL ON CERTIFICATE ::BitLockerManagement_CERT TO RecoveryAndHardwareRead
    GRANT CONTROL ON CERTIFICATE ::BitLockerManagement_CERT TO RecoveryAndHardwareWrite
    END

    Afterwards everything worked for us like a charm.

    Probably this helps someone in the future facing the same problem.

    Again thank you all for your time and thoughts!

    Regards
    st3ff

    1 person found this answer helpful.

  2. AllenLiu-MSFT 40,961 Reputation points Microsoft Vendor
    2022-06-30T07:01:07.173+00:00

    Hi, @26496502

    Thank you for posting in Microsoft Q&A forum.

    It looks a strange issue, have we checked the BitLockerManagementHandler.log on client to see if there any error or related event message?


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Stefan 6 Reputation points
    2022-06-30T08:29:31.167+00:00

    Hi Allen,

    thanks for your suggestions.
    I created a completely new client for testing and checked the BitlockerManagementHandler.log and the only error I can find is "Failed to check enrollment url, 0x00000001:" from time to time. But not everytime the compliance rule is checking for compliance.

    What I can see in the MBAM Admin event Log is the warning:
    "Unable to connect to the MBAM Recovery and Hardware service.

    Error code:
    -2147024809"

    In the MBAM Operational log everything seems to be fine.

    If you would be so kind to cross-check the log, I attached the log of the newly created client, which indeed does not start to encrypt drives and doe not communicate with the database.

    216329-bitlockermanagementhandler.log

    0 comments No comments

  4. AllenLiu-MSFT 40,961 Reputation points Microsoft Vendor
    2022-07-01T06:36:12.04+00:00

    Hi, @26496502

    You can see the warning in the MBAM Admin event Log "Unable to connect to the MBAM Recovery and Hardware service."
    It might means the value of MBAM Compliance Status Service or Recovery and Hardware Service is incorrect.
    We may need to verify the values of KeyRecoveryServiceEndPoint and StatusReportingServiceEndpoint under the following registry subkey on the client computer:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FVE\MDOPBitLockerManagement

    For more details, please refer to:
    https://learn.microsoft.com/en-us/microsoft-desktop-optimization-pack/mbam-v25/troubleshooting-mbam-installation#troubleshooting-mbam-agent-communication-issues


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

  5. Stefan 6 Reputation points
    2022-07-01T07:38:46.11+00:00

    Hi @AllenLiu-MSFT ,

    thanks again for your answer.
    I checked the mentioned registry keys and had to realize, that there is no "KeyRecoveryServiceEndPoint" key and the "StatusReportingServiceEndpoint" key has no value.

    Afterwards I created the "KeyRecoveryServiceEndPoint" key and filled in the correct values for both keys.
    When I ran the compliance check on the client, after about 3 minutes, I got the same error message as before and when I check the registry, I found the same status as before, so the "KeyRecoveryServiceEndPoint" key had been deleted and the "StatusReportingServiceEndpoint" key has no value.

    Do you have any suggestions, how this behaviour can happen?

    Thanks again!

    0 comments No comments