Run PowerShell script on a schedule
It's great to see the Intune Management Extensions available now, but what would be even better is to extend this functionality to be able to run powershell scripts on a schedule or in a repeated fashion.
The setting could be put under Device Configuration -> PowerShell Scripts -> [script name] -> Settings -> [script settings].
It would be fantastic to be able to have a script execute from intune like it were a scheduled task. eg. Mon, Tue, Wed, Thurs, Fri, Sat, Sun, and a time. Or have options for "Every 1 week" or "Custom" where we can put the number of days.
Anyway it's just an idea which I think would add real value to this fantastic new capability.
Michael Mardahl commented
I have made a solution for this! Also put a pre-made MSI for this in GitHub, ready to deploy. https://www.iphase.dk/force-reload-intune-powershell-scripts/
Let me know if it needs any adjustments, via Twitter or GitHub issues.
We need to make the script run after each login
And put a powershell detection script like Win32 apps in Intune, and the script could trigger based on the detection when needed.
Please...currently the powershell function in Intune is useless as there is no compliance in it. THe scripts will only rune once and after a change.....A lot of people need the same behavior like in GPOs.
Run at system boot and as an Intune extension run every hour if the agent is checking everything else also!