Forum Discussion

JosLieben's avatar
JosLieben
Iron Contributor
Jun 12, 2019

Simple method to run logon / recurring scripts in Intune!

Happy to share my latest Intune script :) It does not use scheduled tasks and allows you set a recurring time for the script to rerun and/or just to run at every logon:

https://www.lieben.nu/liebensraum/2019/06/simplify-logon-scripts-in-intune-without-schedules/

The advantage is that when you unassign the script from a user, no scheduled task remains that ignorantly keeps running the script :)

  • RobdeRoos's avatar
    RobdeRoos
    Iron Contributor
    Thanx, same as I do but I wrap it in an MSI. That way it is possible to monitor the deployment, Uninstall or upgrade if nescecary.
    • Werner_Pertl's avatar
      Werner_Pertl
      Copper Contributor

      RobdeRoos Could you share your solution? Joss script isn't working for me - it only runs once when deployed. Triple checked everything - no way to get it to run :-).
      Would be cool to check out your solution.

      Thx 

      Werner

      • RobdeRoos's avatar
        RobdeRoos
        Iron Contributor

        Werner_Pertl I use Advanced Installer to "install" the script to the program files folder and I create a shortcut that I place in the startup folder.

    • mmatook's avatar
      mmatook
      Copper Contributor

      RobdeRoos After I create an MSI package how do I get it to start every time someone logs in?

       

        I like the visibility your solution provides.  Also is it just more or can you only have 1 script targeting a PC at a time?  This solution would be a work around for that.  

       

      Thanks for any feedback

      • RobdeRoos's avatar
        RobdeRoos
        Iron Contributor
        Make sure you place a shortcut to the script in the startup folder. I made a scriot with AutoIt and compiled that to an exe. The exe I place somewhere in program files ans the shortcuts to it lands in the startupfolder.

Resources