Kaseya Community

Scripts to control Resident Shield

  • These are for temporary control over Resident Shield. When the machine reboots or a Kaseya scan is run, the profile settings will override the temporary setting. I've gotten this request a number of times...and just HAD to find a solution. I'm hoping this helps anyone doing backups...


    Jeff

    There are two scripts - enable and disable


    Script Name: KES_Enable Resident Shield
    Script Description: Enables Resident Shield temporarily (until next scan or reboot...unless it is enabled by default and is being re-enabled after being temporarily disabled)

    IF True
    THEN
    Get Variable
    Parameter 1 : 10
    Parameter 2 :
    Parameter 3 : agenttemp
    OS Type : 0
    Execute File
    Parameter 1 : #agenttemp#\kes\KasAVCmd.exe
    Parameter 2 : -setFileMonitorEnable 1
    Parameter 3 : 3
    OS Type : 0
    ELSE




    Script Name: KES_Disable Resident Shield
    Script Description: Disables Resident Shield temporarily (until next scan or reboot)

    IF True
    THEN
    Get Variable
    Parameter 1 : 10
    Parameter 2 :
    Parameter 3 : agenttemp
    OS Type : 0
    Execute File
    Parameter 1 : #agenttemp#\kes\KasAVCmd.exe
    Parameter 2 : -setFileMonitorEnable 0
    Parameter 3 : 3
    OS Type : 0
    ELSE




    Legacy Forum Name: Scripts to control Resident Shield,
    Legacy Posted By Username: Jeff.Keyes
  • Thanks Jeff, works great.

    Can you think of an easy way to temporarily disable the Protection Disabled alert that is generated when running the disable script pre-backup?

    Legacy Forum Name: KES,
    Legacy Posted By Username: Alan M