Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.46 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.46 KB

SideCarBehaviourScript

SideCarBehaviourScript adds super powers to the Microsoft Intune Management Extension

Disclaimer: This is a working PoC, but not tested extensively - use at own risk! The BLOG post explaining this solution can be found here: https://www.iphase.dk/force-reload-intune-powershell-scripts/

This script adds the following funtionality to the Intune Management Extensions:

  • Force Reloading (specific) PowerShell scripts every 90 minutes.
  • Force Reloading (specific) PowerShell scripts at user logon.

The script can be installed in the following ways:

  • Manually (copying files, and running the configure-scheduledtasks.ps1 file (don't move the files afterwards!))
  • Through SCCM with the PowerShell App Deployment Toolkit (example in repo)
  • Through Intune as an MSI (wrapping the App Deployment Toolkit with the exemsi.com wrapper)

Specifying behaviour for specific scripts.

In order to have the script correctly identify scripts that you want either Reloaded at logon, or repetitively. You have to output two very specific lines as the first output of your scripts, as it will be written to the registry by the Intune Management Extensions - The SideCarBehaviourScript looks for these lines in the registry.

  • Example for a "ATSTARTUP" script:
Write-Output "<scriptfile name>"
Write-Output "##SideCarBehaviour##ATSTARTUP"  
  • Example for a "RELOAD" script:
Write-Output "<scriptfile name>"
Write-Output "##SideCarBehaviour##RELOAD"