Deployment of a powershell script

andreas bright 521 Reputation points
2020-09-29T21:48:01.593+00:00

Hi,

I have a powershell script that changes some settings in the registry and also do copy some files from a blob.
This script is pushed out successfully.

Now what happens If I change some settings in the script, and upload the script again, will it run ? sin it has been successful the first time ? Or would I need to create a new script, and remove the other ?

Or should I push the script out as a Win32 app ?

Thanks for reply.

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
2,113 questions
No comments
{count} votes

Accepted answer
  1. Nick Hogarth 3,411 Reputation points MVP
    2020-09-29T22:20:31.643+00:00

    If there is a change in the script, it should run again. From https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension#important-considerations

    The Intune management extension agent checks with Intune once every hour and after every reboot for any new scripts or changes. After you assign the policy to the Azure AD groups, the PowerShell script runs, and the run results are reported. Once the script executes, it doesn't execute again unless there's a change in the script or policy. If the script fails, the Intune management extension agent will attempt to retry the script three times for the next 3 consecutive Intune management extension agent check-ins.

    No comments

0 additional answers

Sort by: Most helpful