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.
Jake Ives commented
I like the idea of this feature.
Would be really handy
Daniel Ratliff commented
This is a must have in order to be able to deliver the same capabilities as traditional management tools like Group Policy and SCCM Baselines. We need settings to not just be set once, but enforced, to prevent configuration drift.
The powershell support in Intune so rudimentary. This would be a very valuable addition.
We miss it every day to run powershell on each logon
Jason Beer commented
We need some sort of option that allows scripts to be run more than once. After reboot, each login, etc.
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!