Microsoft KB Archive/308191

= You cannot use the AppGetStatus method in a script to administer Internet Information Services 5.1 =

Article ID: 308191

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Services 5.1

-



This article was previously published under Q308191



SYMPTOMS
You cannot use the AppGetStatus method in a script to administer Internet Information Services (IIS) 5.1.



STATUS
This behavior is by design.



MORE INFORMATION
AppGetStatus is an IIS Active Directory Service Interfaces (ADSI) method call that you can use to check the current status of a Web site. The IIS method call AppGetStatus is still available through ADSI, but you cannot use it in scripts. The AppGetStatus method can still be called from a program that is written in C++.

The IIS ADSI method call AppGetStatus2 has replaced AppGetStatus and you can run this from a script. AppGetStatus2 supplies identical functionality as AppGetStatus.

The following code is a scripting sample using AppGetStatus2: <%  Dim DirObj, vStatus Set DirObj = GetObject(&quot;IIS://LocalHost/W3SVC/1/ROOT/MyAppDir&quot;) 'Get the status of the application. vReturn = DirObj.AppGetStatus2 %>

Keywords: kbnofix kbprb KB308191

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.