---
title: "Discussion on \"Get overall status of your clients in AD, AAD, Intune and SCCM services\" | Hashnode"
description: "Discussion on \"Get overall status of your clients in AD, AAD, Intune and SCCM services\". And create report of the problematic ones"
url: "https://hashnode.com/posts/get-overall-status-of-your-clients-in-ad-aad-intune-and-sccm-services/6166e4da18374f2573277a3d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Get overall status of your clients in AD, AAD, Intune and SCCM services](https://doitpshway.com/get-overall-status-of-your-clients-in-ad-aad-intune-and-sccm-services?utm_source=hashnode&utm_medium=feed)

And create report of the problematic ones

Oct 13, 2021 · 4 min read · doitpshway.com  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#monitoring](https://hashnode.com/tag/monitoring)
-   [#windows](https://hashnode.com/tag/windows)
-   [#azure](https://hashnode.com/tag/azure)
-   [#script](https://hashnode.com/tag/script)

## Written by

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

@AndrewZtrhgf · Czech Republic

  
[View profile](https://hashnode.com/@AndrewZtrhgf)

System Administrator that loves PowerShell

I work as System Administrator for more than 15 years now and I love to make my life easier by automating work &amp; personal stuff via PowerShell (even silly things like food recipes list generation).

## Responses 1

Markdown supported · ⌘↵ to post

[Isaac Oni](https://hashnode.com/@Isaaconi)

[Jan 18, 2023](https://hashnode.com/posts/get-overall-status-of-your-clients-in-ad-aad-intune-and-sccm-services/6166e4da18374f2573277a3d/comment/63c7ebe716cfbf7c0f2b3fd3)

At C:\\Users\\isaaco\\Documents\\Get-MDMClientData.ps1:122 char:39

-   \[ValidateNotNullOrEmpty()\]
-   ~ Parameter declarations are a comma-separated list of variable names with optional initializer expressions. At C:\\Users\\isaaco\\Documents\\Get-MDMClientData.ps1:122 char:39
-   \[ValidateNotNullOrEmpty()\]
-   ~ Missing ')' in function parameter list. At C:\\Users\\isaaco\\Documents\\Get-MDMClientData.ps1:330 char:39
-   \[ValidateNotNullOrEmpty()\]
-   ~ Parameter declarations are a comma-separated list of variable names with optional initializer expressions. At C:\\Users\\isaaco\\Documents\\Get-MDMClientData.ps1:330 char:39
-   \[ValidateNotNullOrEmpty()\]
-   ~ Missing ')' in function parameter list.
    -   CategoryInfo : ParserError: (:) \[\], ParseException
    -   FullyQualifiedErrorId : InvalidFunctionParameter

I get the above errors when I tried to dot source the script. Can you help please

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Jan 18, 2023](https://hashnode.com/posts/get-overall-status-of-your-clients-in-ad-aad-intune-and-sccm-services/6166e4da18374f2573277a3d/comment/63c7ebe716cfbf7c0f2b3fd3#reply-63c7f8c716cfbf7c0f2b41e7)

[Isaac Oni](https://hashnode.com/@Isaaconi) please try this version instead [gist.github.com/ztrhgf/90bbeeb1dee4916f287bad806d…](https://gist.github.com/ztrhgf/90bbeeb1dee4916f287bad806d8fa13b) (don't forget to again replace the FIXMEs)

[Isaac Oni](https://hashnode.com/@Isaaconi)

[Jan 18, 2023](https://hashnode.com/posts/get-overall-status-of-your-clients-in-ad-aad-intune-and-sccm-services/6166e4da18374f2573277a3d/comment/63c7ebe716cfbf7c0f2b3fd3#reply-63c7fb44afd2f07b226305bd)

Thank you, I now get the error below

PS C:\\Users\\isaaco> Get-MDMClientData -computer nj-60-ntb -graphCredential $Cred | Format-List \* Credentials for creating Graph API authentication header is missing At C:\\Users\\isaaco\\Documents\\Get-MDMClientData.ps1:98 char:29

-   ... edential) { throw "Credentials for creating Graph API authentication ...
-   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    -   CategoryInfo : OperationStopped: (Credentials for...ader is missing:String) \[\], RuntimeException
    -   FullyQualifiedErrorId : Credentials for creating Graph API authentication header is missing

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Jan 18, 2023](https://hashnode.com/posts/get-overall-status-of-your-clients-in-ad-aad-intune-and-sccm-services/6166e4da18374f2573277a3d/comment/63c7ebe716cfbf7c0f2b3fd3#reply-63c7fe96afd2f07b2263060d)

[Isaac Oni](https://hashnode.com/@Isaaconi) I suppose you haven't provided the credentials in $cred variable then? Btw you should use device name from your environment instead of nj-60-ntb :)
