IGPMGPO::SetWMIFilter method (gpmgmt.h)

Links the GPMWMIFilter object to the current Group Policy object (GPO). This method can also be used to unlink existing WMI filters from the GPO.

Syntax

HRESULT SetWMIFilter(
  [in] IGPMWMIFilter *pIGPMWMIFilter
);

Parameters

[in] pIGPMWMIFilter

Pointer to the WMI filter to associate with the current GPO. Passing NULL in this parameter unlinks any existing WMI filters.

Return value

JScript

Returns S_OK if successful. Returns a failure code if an error occurs.

VB

Returns S_OK if successful. Returns a failure code if an error occurs.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See also

IGPMGPO

IGPMWMIFilter