Skip to content
SideCarBehaviourScript adds super powers to the Microsoft Intune Management Extension
Branch: master
Clone or download
Latest commit f26f691 May 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AppDeployToolkit Example Add files via upload May 6, 2019
Example Configuration Scripts Create README.md May 7, 2019
MSI Update README.md May 9, 2019
Script Files Add files via upload May 6, 2019
LICENSE Initial commit May 6, 2019
README.md Update README.md May 7, 2019

README.md

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" 
You can’t perform that action at this time.