DOCUMENT:Q308191 28-JAN-2002 [iis] TITLE :Can't Use AppGetStatus in a Script to Administer IIS 5.1 PRODUCT :Internet Information Server PROD/VER::5.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Internet Information Services version 5.0 - Microsoft Internet Information Services version 5.1 ------------------------------------------------------------------------------- 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("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir") 'Get the status of the application. vReturn = DirObj.AppGetStatus2 %> Additional query words: iis 5 ====================================================================== Keywords : Technology : kbiisSearch kbiis500 kbiis510 Version : :5.0 Issue type : kbprb Solution Type : kbnofix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2002.