Disable a Web Directory Application

Disables the Web application in the W3SVC/2142295254/root/aspnet_client_folder directory.

VBScript Code


strComputer = "LocalHost"
Set objIIS = GetObject _
    ("IIS://" & strComputer & "/W3SVC/2142295254/root/aspnet_client_folder")

objIIS.AppDisable