Using Intune to configure a Scheduled Task to start a service at User logon
If you are looking for a way to execute a command at user logon then this blog may just help you. Recently, I dealt with an issue where users were being prompted to provide UAC credentials in order to allow running of a background service against an application installed using Company Portal. The name of the application is Nord VPN Teams and since I was working with this application for the first time, I knew very little about it. However, if your users are not admin users and are setup as Standard Users then it is not hard to imagine that users can receive such prompts from time to time. To get around this, I immediately thought of using Proactive Remediation Scripts feature in Intune. However, the issue with using Proactive Remediation Scripts at the moment is that one cannot make the script run at User logon . Enter the use of good old Task Scheduler in Windows. The solution involves the following at a high level - 1. Define a PS script to detect the status of the serv...