Reputation: 221
Is there any way to check isapi and CGI filters are installed or not. I want a C# program that check these filters are installed or not. Is there any registry check exists? Or any other way to check.
Thanks in advance.
Upvotes: 0
Views: 1106
Reputation: 108975
This information is certainly available in the ServerManager
module with PowerShell (PSH, on Server 2008 R2):
get-WindowsFeature Web-CGI,Web-IS* | ft -auto displayname,name.installed
results in, on a server here:
DisplayName Name Installed ----------- ---- --------- CGI Web-CGI False ISAPI Extensions Web-ISAPI-Ext False ISAPI Filters Web-ISAPI-Filter False
Which means using a PSH Runspace
and the PSH runtime would be a way to get this.
Upvotes: 1
Reputation: 33242
You can use WMI instrumentations: check here. You can start from here for the specific question about isapi filters.
Upvotes: 0