Submit a ticketCall us

Quickly Address Software Vulnerabilities
Patch Manager is an intuitive patch management software which extends the capabilities of WSUS and SCCM to not only patch Windows® servers and workstations, and Microsoft® applications, but also other 3rd-party applications which are commonly exploited by hackers. Learn more about our patch management solution.

 

Home > Success Center > Server & Application Monitor (SAM) > Convert WMI to RPC

Convert WMI to RPC

Table of contents

Overview

The following SQL Script will convert all existing Windows service component monitors fetching method from WMI to RPC.
Note: If needed, you can copy the code below, paste it in Notepad, then save it with the .sql extension.

Environment

All SAM versions

Detail

-- Please, set below variable as @Value = 'RPC' to update all existed Windows Service and Process
-- components\component templates to use 'RPC (Remote Procedure Call' fetching method setting.
-- And set it as @Value = 'WMI' to update all existed Windows Service and Process
-- components\component templates to use 'WMI (Windows Management Instrumentation' fetching method setting.

DECLARE    @Value NVARCHAR(max)
SELECT @Value = 'RPC' --'WMI'
   
UPDATE
    APM_ComponentSetting
SET
    [Value] = @Value
WHERE
    [ComponentID] IN
    (
        SELECT
            c.ID
        FROM
            APM_Component c
        WHERE
            c.ComponentType IN (1, 9)
    ) AND [Key] = 'FetchingMethod' AND [ValueType] = 5

UPDATE
    APM_ComponentTemplateSetting
SET
    Value = @Value
WHERE
    [ComponentTemplateID] IN
    (
        SELECT
            ct.ID
        FROM
            APM_ComponentTemplate ct
        WHERE
            ct.ComponentType IN (1, 9)
    ) AND [Key] = 'FetchingMethod' AND [ValueType] = 5
GO

 

Last modified
21:36, 30 Nov 2016

Tags

Classifications

Public