Is there a way to check programmatically Intune is enabled?

Oleg Tserkovnyuk 616 Reputation points
2023-08-29T14:37:20.8966667+00:00

Hello,

Does anyone know how to check programmatically if Intune is enabled\configure? Is there any type of check using PowerShell commands or GraphAPI that can help to identify this?

E.g. tenant with and without Intune:

User's image

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,919 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,373 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,184 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 13,710 Reputation points Microsoft Vendor
    2023-08-30T06:23:14.26+00:00

    @Oleg Tserkovnyuk, Thanks for posting in Q&A. 

    From your description, we understand that you want to check whether you have Intune enabled via PowerShell or GraphAPI.

    I did some research about the issue, it was found that you can check whether Intune is enabled via PowerShell via the following commands. Here is my test:

    1. Install Microsoft.Intune.Graph Module via entering Install-Module Microsoft.Intune.Graph at the PowerShell.
    2. Entering command Invoke-MSGraphRequest -Url https://graph.microsoft.com/beta/organization('$DirectoryID')?`$select=mobiledevicemanagementauthority -HttpMethod Get | Select mobileDeviceManagementAuthority to check whether Intune is enabled.User's image

    Here is the link about how to check MDM authority:

    Set the Intune MDM Authority using PowerShell - Naglestad Consulting (naglis.no)

    Note: Non-Microsoft link, just for the reference.

    Hope above can be helpful!


    If the answer is helpful, 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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.