API Reference
Class
ServerFeatureQuery
Reads Windows Server features via Win32_ServerFeature.
Inheritance
- Object
- ServerFeatureQuery
Methods
public static List<ServerFeatureInfo> Get(String computer, Boolean includeAvailable = false, Nullable<TimeSpan> timeout = null, String[] namePatterns = null) #Returns:
List<ServerFeatureInfo>Returns server features installed on the specified computer.
Parameters
- computer System.String
- Target computer name or IP.
- includeAvailable System.Boolean = false
- When true, enriches output with optional feature catalog data from WMI so non-installed features can also be returned.
- timeout System.Nullable{System.TimeSpan} = null
- Optional command timeout for catalog enrichment.
- namePatterns System.String[] = null
- Optional wildcard patterns (`*`/`?`) used to filter on feature name fields (FeatureName, DisplayName, and Name).
public static async Task<List<ServerFeatureInfo>> GetAsync(String computer, TimeSpan timeout, CancellationToken ct, Boolean includeAvailable = false, String[] namePatterns = null) #Returns:
Task<List<ServerFeatureInfo>>Asynchronously returns server features with a timeout.
Parameters
- computer System.String
- Target computer name or IP.
- timeout System.TimeSpan
- Per-query timeout.
- ct System.Threading.CancellationToken
- Cancellation token.
- includeAvailable System.Boolean = false
- When true, enriches output with optional feature catalog data from WMI so non-installed features can also be returned.
- namePatterns System.String[] = null
- Optional wildcard patterns (`*`/`?`) used to filter on feature name fields (FeatureName, DisplayName, and Name).
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object