question

TusharDebnath-8752 avatar image
0 Votes"
TusharDebnath-8752 asked saldana-msft edited

SSRS report for Co managed devices

Hi ,

I am looking for a custom SSRS report to show me the SCCM Co-managed devices exist in a collection specific .Can someone help me to give me a SQL report please ?



mem-intune-device-configurationsmem-cm-co-managementmem-analytics-reporting
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EswarKoneti-MVP avatar image
0 Votes"
EswarKoneti-MVP answered

you can add a new column/attribute with co-managed in the device section, it will show Yes or No. Have you tried this?


201097-image.png



Regards,
Eswar
www.eskonr.com


image.png (9.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TusharDebnath-8752 avatar image
0 Votes"
TusharDebnath-8752 answered EswarKoneti-MVP commented

Thanks a lot for the response .. Yes I am aware of this settings .. But My project needs a SSRS report so that unnecessary console access should be restricted .. :(

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

For SSRS report, the co-management information is stored in SQL table ClientCoManagementState. You try something the SQL code something like below, but you can expand this further to get more data from various SQL views.

SELECT
sv.Netbios_Name0,
ClientCoManagementState.ComgmtEnabled,
ClientCoManagementState.CoMgmtWorkloadFlags,
ClientCoManagementState.MDMEnrolled,
ClientCoManagementState.ComgmtPolicyReceived,
ClientCoManagementState.LastMessageTime,
ClientCoManagementState.LastMessageStateID,
ClientCoManagementState.MDMRegistrationKind,
ClientCoManagementState.ScheduledEnrollTime,
ClientCoManagementState.EnrollmentBeginTime,
ClientCoManagementState.EnrollmentEndTime,
ClientCoManagementState.EnrollmentStatusCode,
ClientCoManagementState.EnrollmentErrorDetail
FROM
ClientCoManagementState
INNER JOIN v_R_System_Valid sv ON ClientCoManagementState.MachineID = sv.ResourceID

Thanks,
Eswar

1 Vote 1 ·
TusharDebnath-8752 avatar image
0 Votes"
TusharDebnath-8752 answered

Thank you for your help .. :)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.