Forum Discussion

Andreas-WPH's avatar
Andreas-WPH
Copper Contributor
Oct 28, 2025

Conditional Access and -Online Device registration error

So there was an Issue creating new discussions yesterday and I ended up with a discussion with Heading only. :)

We're using the Get-WindowsAutopilotInfo.ps1 script with the -Online switch to register our Entra Joined Devices, and the process is being blocked by Conditional Access.
The sign-in logs point to Microsoft Graph Command Line Tools (App ID: 14d82eec-204b-4c2f-b7e8-296a70dab67e) as the blocker. Microsoft Support suggested whitelisting several apps, but unfortunately, that hasn’t resolved the issue—likely because the device doesn’t have the compliant state during online registration.

We’re currently evaluating whether a dedicated service account with scoped permissions for Autopilot enrollment might be a workaround.
Would be great to hear if anyone else has found a reliable solution.

2 Replies

  • Laurie_Aldam's avatar
    Laurie_Aldam
    Brass Contributor

    We are experiencing the same issue and have never had problems harvesting hardware hashes before.

    Our CA policy requires compliance for Office 365 SharePoint Online - 

    00000003-0000-0ff1-ce00-000000000000

    This policy now seems to categorize Microsoft Graph Command Line Tools as part of the Office 365 SharePoint Online application.

    After reviewing the documentation, I concluded it doesn’t apply to us since our compliance policies target users, not devices. I’ll try explicitly excluding Microsoft Intune Enrollment and Microsoft Intune and will report back.

    Update: I've tried excluding Microsoft Graph Command Line Tools, Microsoft Intune Enrollment and Microsoft Intune from the CA policy with no success.

Resources