We've detected a Microsoft Intune PowerShell script issue in your environment

Paricha, Avijit (WIPRO) 20 Reputation points
2024-04-24T03:09:11.66+00:00

Have received the below advisory from Microsoft but enable to find the particular script with the following app id.

Can someone please help the process how to search for this app id and identify.

Creating a new app registration in the Microsoft Entra admin center. For detailed instructions, read: Quickstart: Register an application with the Microsoft identity platform. (https://learn.microsoft.com/entra/identity-platform/quickstart-register-app

Update scripts containing the Intune application ID (d1ddf0e4-d672-4dae-b554-9d5bdfd93547) with the new application ID created in step 1.  

Additional Diagnostics

Review any PowerShell scripts for Intune that run in your environment and are using the AppID d1ddf0e4-d672-4dae-b554-9d5bdfd93547.   Scripts that were copied from the following GitHub repo contain that AppID:  https://github.com/microsoftgraph/powershell-intune-samples 

Latest Message

Title: We've detected a Microsoft Intune PowerShell script issue in your environment User impact: If action isn't taken, PowerShell scripts may break. Current Status: If you are using the Intune PowerShell application ID (d1ddf0e4-d672-4dae-b554-9d5bdfd93547), you will need to update your scripts before May 1 with a different Microsoft Entra ID registered application ID to prevent your PowerShell scripts from breaking. Microsoft has replaced the GitHub repository using the old application ID d1ddf0e4-d672-4dae-b554-9d5bdfd93547 with a new repository as announced here: https://techcommunity.microsoft.com/t5/intune-customer-success/update-to-microsoft-intune-powershell-example-script-repository/ba-p/3842452 Additionally, this has been communicated under Message Center posts MC736429 and MC721851. This communication will expire in 14 days, and is scheduled to remain active for the full duration.

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,921 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,201 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Crystal-MSFT 49,426 Reputation points Microsoft Vendor
    2024-04-24T08:46:25.75+00:00

    @Paricha, Avijit (WIPRO), Thanks for posting in Q&A. Based on my checking, starting on April 1, 2024, due to updated authentication methods in the Graph SDK-based PowerShell module, the Microsoft Intune PowerShell (d1ddf0e4-d672-4dae-b554-9d5bdfd93547) is being removed. If you are using the Intune PowerShell application ID (d1ddf0e4-d672-4dae-b554-9d5bdfd93547), you will need to create a new application under App registrations. And then update your scripts with a Microsoft Entra ID registered application ID with the registered application you created to prevent your scripts from breaking.

    Here is one I created in my environment for your reference.

    1.Go to Identity > Applications > App registrations and select "New registration".

    2.Set the application name, select "Accounts in this organizational directory only (Contoso only - Single tenant)", Redirect URl: urn:ietf:wg:oauth:2.0:oob

    User's image

    3.Click Register to register the application.

    4.Then go to API permissions to add the following permission and "Grant admin consent for Contoso".

    DeviceManagementApps.ReadWrite.All

    DeviceManagementConfiguration.ReadWrite.All

    DeviceManagementManagedDevices.PrivilegedOperations.All

    DeviceManagementManagedDevices.ReadWrite.All

    DeviceManagementRBAC.ReadWrite.All

    DeviceManagementServiceConfig.ReadWrite.All

    Directory.Read.All

    Group.ReadWrite.All

    openid

    User's image

    5.After the Application is created, find the application and replace the one in script with this one.

    User's image

    Hope the above information can help.


    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.

    15 people found this answer helpful.

  2. Jessie Hernandez 45 Reputation points
    2024-05-09T15:15:33.8666667+00:00

    For those using Connect-MSGraph, which is tied to the deprecated appid mentioned in this article, you will need to update it.

    1. Create the new App registration as documented by Crystal-MSFT. Ensure that you have Admin consented the permissions.
    2. On the machine where the Intune PS Module is installed run the following command:
         Update-MSGraphEnvironment -AppId <App ID of app registration created in step 1>
      
    3. Now you should be able to use Connect-MSGraph again.

    This is documented here: https://github.com/microsoftgraph/powershell-intune-samples/blob/master/Updating%20App%20Registration

    9 people found this answer helpful.

  3. Keith 0 Reputation points
    2024-05-01T01:14:43.1766667+00:00
    0 comments No comments

  4. Steve Cox 0 Reputation points
    2024-05-01T16:07:56.39+00:00

    to check usage of the app Look within Entra ID, under Identity – Applications – Enterprise Applications

    The app reg will be called "Microsoft Intune Powershell" and check the Sign in Logs

    0 comments No comments

  5. [Kat_21] 1 Reputation point
    2024-05-10T13:05:15.0833333+00:00

    Hi

    Would anyone know how to list apps published / deployed via Intune using the cmdlets in the MGGraph connection.

    Have installed the new application and registered successfully using notes in this article, however there doesn't seem commands to list applications such as Win32 apps. The following code doesn't return anything that looks suitable.

    Connect-MgGraph
    $allCmds = Find-MgGraphCommand -Command * 
    $allcmds | Where-Object { $_.Module -like "devicemanagement*"} | Select-Object Command, Module | Where-Object { $_.Command -like "get-*app*"} | Sort-Object Command 
    
    

    K

    0 comments No comments

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.