Share via


GPDomain.GetWmiFilter Method (String)

 

Retrieves the specified WMI filter from the domain.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public WmiFilter GetWmiFilter(
    string path
)
public:
WmiFilter^ GetWmiFilter(
    String^ path
)
member GetWmiFilter : 
        path:string -> WmiFilter
Public Function GetWmiFilter (
    path As String
) As WmiFilter

Parameters

  • path
    Type: System.String

    The path of the WMI filter to retrieve, expressed in the following format: MSFT_SomFilter.Domain="<domain of the WMI filter>", ID="<GUID that represents the WMI filter>".

Return Value

Type: Microsoft.GroupPolicy.WmiFilter

Returns WmiFilter. The WMI filter.

Exceptions

Exception Condition
ArgumentNullException

path is null.

Remarks

The following is an example of a path to a WMI filter: MSFT_SomFilter.Domain="example.microsoft.com", ID="{7ab06d20-5e0a-4de9-8170-13dea779a528}".

See Also

GPDomain Class
Microsoft.GroupPolicy Namespace

Return to top