KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q308191: Can’t Use AppGetStatus in a Script to Administer IIS 5.1

Article: Q308191
Product(s): Internet Information Server
Version(s): 5.0
Operating System(s): 
Keyword(s): 
Last Modified: 28-JAN-2002

-------------------------------------------------------------------------------
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 1986-2002.