IGPMGPO::SetWMIFilter method

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(
  IGPMWMIFilter *pIGPMWMIFilter
);

Parameters

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

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See Also

IGPMGPO

IGPMWMIFilter