Quantcast
Channel: Shavlik User Community : All Content - Ivanti Patch for Windows
Viewing all articles
Browse latest Browse all 2126

Custom Action - Remove the Remote Scheduler for Ivanti Patch for Windows Servers

$
0
0

Purpose

 

These steps are intended for use if you need to remove the Ivanti (ST) Remote Scheduler service from multiple systems.

 

Steps

 

  1. 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:
    1. Stopscheduler.bat
    2. DeleteScheduler.reg
  2. 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).
  3. 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.
    1. The scan template should have the Patch Type Filter set to ‘Scan Selected’ with only the ‘Custom Actions’ patch type selected.
    2. No other settings need to be changed in the template. Click Save.
      scanTemplate.jpg
  4. Create a new Patch Deployment Template, and call it “Custom Action to Remove Scheduler”. Make sure to set the following settings:
    1. 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.
      deployTemp1.jpg
    2. Go to the Post-deploy Reboot tab, and set this to ‘Never reboot after deployment’.
      deployTemp2.jpg
    3. 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:
      • Step 3: Push File
      • Step 4: Path to the Stopscheduler.bat
        3.JPG
    4. 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:
      • Step 3: Push File
      • Step 4: Path to the DeleteScheduler.reg
        4.JPG
    5. 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

5.JPG

Here is what the complete custom action should look like (all steps):
6.JPG

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.
scanResult.jpg

    1. Right click and choose to deploy. Then make sure to choose your deployment template of "Custom Action to Remove Scheduler".
    2. 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.
    3. *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.

Viewing all articles
Browse latest Browse all 2126

Trending Articles