Purpose
These steps are intended for use if you need to remove the Ivanti (ST) Remote Scheduler service from multiple systems.
Steps
- Please download the attached zip file at the bottom of this document called "RemoveScheduler.zip". Extract the files from this zip. The files have been renamed to avoid conflict during download so you will need to make sure they are named as follows:
- Stopscheduler.bat
- DeleteScheduler.reg
- Create a folder to contain these files for deployment. We recommend creating a folder titled RemoveSched or similar under your current patch repository (default location is C:\ProgramData\LANDESK\Shavlik Protect\Console\Patches).
- Create a new patch scan template within the Patch for Windows Servers (PWS) console, and call it “Custom Action Scan”. This scan template can be used for future custom action scans as well if you like.
- Create a new Patch Deployment Template, and call it “Custom Action to Remove Scheduler”. Make sure to set the following settings:
- On the General Tab, deselect the ‘Send Tracker status’ option. This change is so that the tracker doesn’t falsely report the deployment as failed. Be aware you will not receive a tracker status for this deployment.
- Go to the Post-deploy Reboot tab, and set this to ‘Never reboot after deployment’.
- Go to the Custom Actions Tab, and Click ‘New’ to create a new step in the custom action. All of these will use the setting at the top as ‘All deployments using this template’. Set up the following:
- Create another action like the one above, this time for the DeleteScheduler.reg file. Click ‘New’ to create a new step in the custom action. All of these will use the setting at the top as ‘All deployments using this template’. Set up the following:
- Now create a new action to stop the scheduler service. This one will differ from the previous 2 actions by having step 3 occur "before any patches".
- Step 3: Before any patches
- Step 4. CALL %pathtofixes%Stopscheduler.bat
- On the General Tab, deselect the ‘Send Tracker status’ option. This change is so that the tracker doesn’t falsely report the deployment as failed. Be aware you will not receive a tracker status for this deployment.
Here is what the complete custom action should look like (all steps):
Using the Custom Action Scan and Deployment Template
Run a scan on any machines you wish to remove the scheduler from using the Custom Action Scan template that you created. You should see the dummy patch (Bulletin ID MSST-001) shown as missing. This will always show as missing.
- Right click and choose to deploy. Then make sure to choose your deployment template of "Custom Action to Remove Scheduler".
- This will not push any actual patches, but it will allow the custom action in the template to run. It will in turn remove the registry key for the scheduler.
- *Important* The the next time you deploy patches the scheduler service will be reinstalled. You can also reinstall the scheduler service by going into the PWS console under Manage > Scheduled Tasks. Right-click on a system in the left column, then choose Scheduler Service > Install.