mecm 2002 bitlocker status sql database

Ghali Bakkali 21 Reputation points
2020-11-03T19:03:12.79+00:00

when trying to execute this query to find bitlocker status, it displayed query executed successfully but no results shown,
any ideas of what could be the issue?

SELECT dbo.v_R_System.Name0, dbo.v_GS_ENCRYPTABLE_VOLUME.DriveLetter0, dbo.v_GS_ENCRYPTABLE_VOLUME.ProtectionStatus0
FROM dbo.v_GS_ENCRYPTABLE_VOLUME INNER JOIN
dbo.v_R_System ON dbo.v_GS_ENCRYPTABLE_VOLUME.ResourceID = dbo.v_R_System.ResourceID

37226-query-sql.png

I also when trying to view the he BitLocker Enterprise Compliance Dashboard Reoport in configutation manager, it error out with

37127-mecm-report-error.png

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,767 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Garth Jones 2,071 Reputation points
    2020-11-03T20:11:58.393+00:00

    Turn on remote errors to see the true error. https://www.enhansoft.com/turn-on-remote-error-reporting/

    Secondly, That query will NOT be limited to the collection that you have selected. Why Because you need to do the limited within the query itself.

    0 comments No comments

  2. Ghali Bakkali 21 Reputation points
    2020-11-03T20:53:12.327+00:00

    1- after enabling that, I had to connect reportingservices in order to enable it, otherwise that option is not available in default connection

    error:

    An error has occurred during report processing. (rsProcessingAborted)
    Cannot read the next data row for the dataset 'ComplianceDetails'. (rsErrorReadingNextDataRow)
    The MERGE statement attempted to UPDATE or DELETE the same row more than once. This happens when a target row matches more than one source row. A MERGE statement cannot UPDATE/DELETE the same row of the target table multiple times. Refine the ON clause to ensure a target row matches at most one source row, or use the GROUP BY clause to group the source rows.

    2- what do I put on the query then to dispaly the results I need


  3. AllenLiu-MSFT 40,881 Reputation points Microsoft Vendor
    2020-11-04T06:25:28.77+00:00

    @Anonymous
    Thank you for posting in Microsoft Q&A forum.
    The data of v_GS_ENCRYPTABLE_VOLUME comes from hardware inventory, have you checked the BitLocker(Win32_EncrytableVolume) in your Hardware Inventory Classes? If not, enable it and wait for the next Hardware Inventory according to your "Hardware Inventory Schedule", then retry the query.
    37349-59.jpg


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.


  4. Ghali Bakkali 21 Reputation points
    2020-11-12T05:07:32.973+00:00

    it still show me this error

    An error has occurred during report processing. (rsProcessingAborted)
    Cannot read the next data row for the dataset 'ComplianceDetails'. (rsErrorReadingNextDataRow)
    The MERGE statement attempted to UPDATE or DELETE the same row more than once. This happens when a target row matches more than one source row. A MERGE statement cannot UPDATE/DELETE the same row of the target table multiple times. Refine the ON clause to ensure a target row matches at most one source row, or use the GROUP BY clause to group the source rows.


  5. Ghali Bakkali 21 Reputation points
    2020-11-12T17:02:05.513+00:00

    first issue is fixed, your query is displaying results.
    the second issue is still there when trying to view the reports available for bitlocker in sccm

    0 comments No comments