Powershell to return exist code

Noor Alhemyari 1 Reputation point
2020-09-29T18:37:44.527+00:00

I would like an option to return PS exist code back to Intune to be used for other purposes (validation, follow up steps, etc..) also the ability to deploy apps based on PS return code as a dependency

Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
909 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AndyLiu-MSFT 586 Reputation points
    2020-10-01T06:02:31.38+00:00

    @Noor Alhemyari

    To my knowledge, you can get the deployment states for PowerShell and Win32 app from the Intune portal. With the state, you can know if the script or app have been deployed successfully.

    In addition, you also can check the IME log file, which is located at %ProgramData%\Microsoft\IntuneManagementExtension\Logs on the client device. From the log file, you can retrieve the exit code or message for the script and app.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.