Mapping IIS 6.0 WMI Methods to IIS 7 and higher WMI Methods1
The table below shows the IIS 6.0 WMI provider class methods mapped to the IIS 7 WMI provider class methods. Most of the IIS 6.0 WMI class methods do not map to IIS 7 WMI provider class methods because of the significant architectural changes that were implemented in IIS 7 to improve processes and provide additional features. Use this table to help you convert your IIS 6.0 programmatic administration to use IIS 7 WMI provider classes and methods.
IIS 6.0 WMI provider classes that do not have methods do not appear in this table. For information about how those classes are mapped to IIS 7 WMI classes and schema elements, see Converting Metabase Properties to Configuration Settings.
IIS 6.0 WMI class | IIS 6.0 method | IIS 7 WMI class or method |
---|---|---|
IIsApplicationPool | IIsApplicationPool.EnumAppsInPool | ApplicationPoolContainsApplication class |
IIsApplicationPool | IIsApplicationPool.Recycle | ApplicationPool.Recycle method |
IIsApplicationPool | IIsApplicationPool.Start IIsApplicationPool.Stop |
ApplicationPool.Start method ApplicationPool.Stop method |
IIsCertMapper | IIsCertMapper.CreateMapping | Deprecated |
IIsCertMapper | IIsCertMapper.DeleteMapping | Deprecated |
IIsCertMapper | IIsCertMapper.GetMapping | Deprecated |
IIsCertMapper | IIsCertMapper.SetAcct | Deprecated |
IIsCertMapper | IIsCertMapper.SetEnabled | Deprecated |
IIsCertMapper | IIsCertMapper.SetName | Deprecated |
IIsCertMapper | IIsCertMapper.SetPwd | Deprecated |
IIsComputer | IIsComputer.BackupWithPassword | Deprecated |
IIsComputer | IIsComputer.DeleteBackup | Deprecated |
IIsComputer | IIsComputer.EnumBackup | Deprecated |
IIsComputer | IIsComputer.EnumHistory | Deprecated |
IIsComputer | IIsComputer.ExportHistory | Deprecated |
IIsComputer | IIsComputer.Export | Deprecated |
IIsComputer | IIsComputer.Import | Deprecated |
IIsComputer | IIsComputer.RestoreHistory | Deprecated |
IIsComputer | IIsComputer.RestoreWithPassword | Deprecated |
IIsComputer | IIsComputer.SaveData | Deprecated; see the ConfigurationHistorySection class for the configuration of related functionality in IIS 7. |
IIsFTPServer | IIsFTPServer.Continue | Use IIS 6.0 WMI classes and methods. |
IIsFTPServer | IIsFTPServer.Pause | Use IIS 6.0 WMI classes and methods. |
IIsFTPServer | IIsFTPServer.Start | Use IIS 6.0 WMI classes and methods. |
IIsFTPServer | IIsFTPServer.Stop | Use IIS 6.0 WMI classes and methods. |
IIsWebDirectory | IIsWebDirectory.AppCreate | Deprecated; use the Application.Create method. |
IIsWebDirectory | IISWebDirectory.AppCreate2 | Deprecated; use the Application.Create method. |
IIsWebDirectory | IIsWebDirectory.AppCreate3 | Deprecated; use the Application.Create method. |
IIsWebDirectory | IIsWebDirectory.AppDelete | Deprecated; use the Delete_ method inherited by the Application class. |
IIsWebDirectory | IIsWebDirectory.AppDisable | Deprecated |
IIsWebDirectory | IIsWebDirectory.AppEnable | Deprecated |
IIsWebDirectory | IIsWebDirectory.AppGetStatus | Deprecated; use the Site.GetState, WorkerProcess.GetState, or ApplicationPool.GetState method for similar functionality. |
IIsWebDirectory | IISWebDirectory.AppUnload | Deprecated; use the AppDomain.Unload method. |
IIsWebDirectory | IISWebDirectory.AspAppRestart | Deprecated |
IIsWebServer | IIsWebServer.Start | Deprecated; use the ApplicationPool.Start or Site.Start method. |
IIsWebServer | IIsWebServer.Stop | Deprecated; use the ApplicationPool.Stop or Site.Stop method. |
IIsWebServer | IIsWebServer.Continue | Deprecated |
IIsWebServer | IIsWebServer.Pause | Deprecated |
IIsWebService | IIsWebService.AddDependency | Deprecated |
IIsWebService | IIsWebService.AddExtension | Deprecated; see the IsapiCgiRestrictionSection class for related configuration. |
IIsWebService | IIsWebService.CreateNewSite | Deprecated; use the Site.Create method. |
IIsWebService | IIsWebService.DisableExtensionFileRecord | Deprecated |
IIsWebService | IIsWebService.DisableExtensionFile | Deprecated |
IIsWebService | IIsWebService.DisableWebServiceExtension | Deprecated |
IIsWebService | IIsWebService.EnableApplication | Deprecated |
IIsWebService | IIsWebService.EnableExtensionFile | Deprecated |
IIsWebService | IIsWebService.EnableWebServiceExtension | Deprecated |
IIsWebService | IIsWebService.GetCurrentMode | Deprecated |
IIsWebService | IIsWebService.ListApplications | Deprecated; list instances of the Application class instead. |
IIsWebService | IIsWebService.ListExtensionFiles | Deprecated |
IIsWebService | IIsWebService.ListWebServiceExtensions | Deprecated |
IIsWebService | IIsWebService.QueryGroupIDStatus | Deprecated |
IIsWebService | IIsWebService.RemoveApplication | Deprecated; use the Delete_ method inherited by the Application class. |
IIsWebService | IIsWebService.RemoveDependency | Deprecated |
IIsWebVirtualDir | IIsWebVirtualDir.AppCreate | Application.Create method; VirtualDirectory.Create method |
IIsWebVirtualDir | IIsWebVirtualDir.AppCreate2 | Application.Create method; VirtualDirectory.Create method |
IIsWebVirtualDir | IIsWebVirtualDir.AppCreate3 | Application.Create method; VirtualDirectory.Create method |
IIsWebVirtualDir | IIsWebVirtualDir.AppDelete | Deprecated; use the Delete_ method inherited by the Application class for applications; use the Delete_ method inherited by the VirtualDirectory class for virtual directories. |
IIsWebVirtualDir | IIsWebVirtualDir.AppDisable | Deprecated |
IIsWebVirtualDir | IIsWebVirtualDir.AppEnable | Deprecated |
IIsWebVirtualDir | IIsWebVirtualDir.AppGetStatus | Deprecated; use the ApplicationPool.GetState or Site.GetState method. |
IIsWebVirtualDir | IIsWebVirtualDir.AppUnload | Deprecated; use the AppDomain.Unload method. |
IIsWebVirtualDir | IIsWebVirtualDir.AspAppRestart | Deprecated; use the ApplicationPool.Recycle method. |