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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for