Skip to content
/ SCBS Public

SideCarBehaviourScript adds super powers to the Microsoft Intune Management Extension

License

Notifications You must be signed in to change notification settings

mardahl/SCBS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" 

About

SideCarBehaviourScript adds super powers to the Microsoft Intune Management Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published