Enabling / disabling asp.net web service extension via script

In IIS 6, I can use the Web Services Extensions folder in Inetmgr to enable / disable isapi filters such as ASP.net. I want to be able to do this programmatically (in particular from the script / exe installer).

alt text

Any ideas?

+3
source share
2 answers

Adding web service extension files using Iisext.vbs should be pretty much what you are looking for (a related article describes how to add a new filter: if you just need to enable it, scroll down and view a list of related articles for exact instructions on how to achieve this)

+2
source
   Set iisinfo = GetObject("IIS://localhost/W3SVC/Info")
   If CInt(iisinfo.MajorIIsVersionNumber) >= 6 Then
      Set iisinfo = Nothing
      Set iis = GetObject("IIS://localhost/W3SVC")
      iis.EnableWebServiceExtension "ASP"
   End If
+2
source

Source: https://habr.com/ru/post/1697660/


All Articles