AppGetStatus Does Not Reflect the Same Status as the MMC When You Use Adsutil.vbs (247139)
The information in this article applies to:
- Microsoft Internet Information Server 4.0
This article was previously published under Q247139 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: SYMPTOMS
When you attempt to get the status of an application by using the Adsutil.vbs utility, the command fails to show the correct status of the application. There is an inconsistency between what the metabase displays and what the Internet Information Server (IIS) Microsoft Management Console (MMC) displays. In the MMC, the Application settings are not disabled (grayed out), because the MMC believes the application is loaded.
CAUSE
A confirmed bug in IIS 4.0 is the cause of this behavior. At this time, there is no fix for IIS 4.0.
RESOLUTION
This problem has been corrected in Internet Information Services (IIS) 5.0. To resolve this problem, upgrade to IIS 5.0, which is included in Windows 2000 Professional, Windows 2000 Server, and Windows 2000 Advanced Server.
WORKAROUND
There are two possible workarounds to use in an IIS 4.0 environment. To perform the workarounds, you need to obtain the Mdutil.exe utility, which can be found on the Windows NT Option Pack CD in the following location:
CDROM:\Ntoptpak\En\x86\Winnt.srv\Mdutil.exe
Workaround 1NOTE: The following information assumes that you have copied the Mdutil.exe file to your local c: drive.
- At a command prompt, type the following command:
C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin
The screen displays the following: - Type the following command:
C:\>mdutil.exe appunload w3svc/1/root/iisadmin
The screen displays the following: Open the browser and go to the virtual directory or Web site where you want to make changes. - Type the following command:
C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin
The screen displays the following: - Type the following command:
C:\>mdutil.exe appunload w3svc/1/root/iisadmin
The screen displays the following: - Type the following command:
C:\>mdutil.exe appgetstatus w3svc/1/root/iisadmin
The screen displays the following:
Workaround 2
The second alternative is to use the adsutil delete function. To issue this command, perform the following steps:
- Type the following command at a command prompt:
C:\WINNT\system32\inetsrv\adminsamples>adsutil appdelete w3svc/1/root/iisadmin The display shows Application Deleted. - Type the following command:
C:\WINNT\system32\inetsrv\adminsamples>adsutil appcreateinproc w3svc/1/root/iisadmin
The display shows Application Created. NOTE: To change the application's friendly name, use the following command: C:\WINNT\system32\inetsrv\adminsamples>adsutil delete w3svc/1/root/iisadmin/AppFriendlyName
Modification Type: | Minor | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbpending kbprb KB247139 |
---|
|