Giter VIP home page Giter VIP logo

scbs's Introduction

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" 

scbs's People

Contributors

mardahl avatar

Stargazers

 avatar  avatar Kaj avatar Maurice MJ de Jong avatar  avatar Geoff avatar Yasin El avatar Evgeny Istratov avatar  avatar Jelle Revyn avatar  avatar  avatar

Watchers

 avatar Geoff avatar  avatar  avatar  avatar

scbs's Issues

Failed scripts don't recover

If IME has failed to run a script 3 times, it will be in a permanent failed state, and SCBS won't be able to force it to run again.

Would probably need to build a function that stores the ID of the scripts, once they have run successfully the first time.
Need to keep the list clean though, so old ID's get purged.

Make Uninstall work for MSI wrapper

Currently I am unable to make the MSIWrapper uninstall the solution correctly.
The App Deploy Toolkit for this works just fine, the MSI is just not executing the uninstall command for some reason.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.