Compartir a través de


IIsWebService (WMI)

This class corresponds to the IIsWebService IIS Admin object, and contains the methods and read-only properties for the object.

Win32_Service (WMI)

Methods in Vtable Order

The IIsWebService object defines the following methods, in addition to those inherited from Win32_Service (WMI).

Method

Description

IIsWebService.AddDependency (WMI)

The AddDependency method adds an entry in ApplicationDependencies for a single application.

IIsWebService.AddExtensionFile (WMI)

The AddExtensionFile method adds an entry to ISAPIRestrictions or CGIRestrictions identified by filepath.

IIsWebService.CreateNewSite (WMI)

The CreateNewSite method creates a new Web site on an IIS 6.0 server. CreateNewSite works in the following way:

  • If the method succeeds, it returns a reference to the site identification number for the newly created site.

  • If the method fails to create a site, it returns an error. This may happen if the ServerId does not exist. If a site already exists with the ServerComment that you want to use, an error is not returned because the new site can still be created with a unique site identification number. See Remarks.

IIsWebService.DeleteExtensionFileRecord (WMI)

The DeleteExtensionFileRecord method deletes an entry in ISAPIRestrictions or CGIRestrictions. If the entry is not marked not deletable, then the command line tool returns an error.

IIsWebService.DisableExtensionFile (WMI)

The DisableExtensionFile method sets the Access flag on each of the ISAPIRestrictions or CGIRestrictions identified by filepath to 0 (Deny).

IIsWebService.DisableWebServiceExtension (WMI)

The DisableWebServiceExtension method sets the Access flag on each of the ISAPIRestrictions or CGIRestrictions identified by GroupID to 0 (Deny).

IIsWebService.EnableApplication (WMI)

The EnableApplication method enables the Web service extensions required by a specific application.

IIsWebService.EnableExtensionFile (WMI)

The EnableExtensionFile method sets the Access flag on each of the extension files identified by filepath to 1 (Allow).

IIsWebService.EnableWebServiceExtension (WMI)

The EnableWebServiceExtension method sets the Access flag on each of the ISAPIRestrictions or CGIRestrictions identified by GroupID to 1 (Allow).

IIsWebService.GetCurrentMode (WMI)

The GetCurrentMode method returns the mode under which the World Wide Web Publishing Service (WWW service) is running; either the IIS 5.0 isolation mode or the new worker process isolation mode.

IIsWebService.ListApplications (WMI)

The ListApplications method lists the applications that can be enabled on the server.

IIsWebService.ListExtensionFiles (WMI)

The ListExtensionFiles method lists the extension files that can be enabled on the server. This essentially enumerates all entries in WebSvcExtRestrictionList.

IIsWebService.ListWebServiceExtensions (WMI)

The ListWebServiceExtensions method lists the Web service extensions that can be enabled on the server. If there are multiple entries with the same GroupID, the Web service extension is listed only once.

IIsWebService.QueryGroupIDStatus (WMI)

The QueryGroupIDStatus method lists applications that depend on the given set of ISAPI or CGI extensions.

IIsWebService.RemoveApplication (WMI)

The RemoveApplication method removes an entry in ApplicationDependencies for a single application.

IIsWebService.RemoveDependency (WMI)

The RemoveDependency method removes an entry in ApplicationDependencies for a single application.

Properties

The IIsWebService object defines the following properties, in addition to those inherited from Win32_Service (WMI).

Property

Data type

Description

AppIsolated

SINT32

See AppIsolated in the Metabase Property Reference.

AppPackageID

String

See AppPackageID in the Metabase Property Reference.

AppPackageName

String

See AppPackageName in the Metabase Property Reference.

AppRoot

String

See AppRoot in the Metabase Property Reference.

AuthChangeURL

String

See AuthChangeURL in the Metabase Property Reference.

AuthExpiredUnsecureURL

String

See AuthExpiredUnsecureURL in the Metabase Property Reference.

AuthExpiredURL

String

See AuthExpiredURL in the Metabase Property Reference.

AuthNotifyPwdExpUnsecureURL

String

See AuthNotifyPwdExpUnsecureURL in the Metabase Property Reference.

AuthNotifyPwdExpURL

String

See AuthNotifyPwdExpURL in the Metabase Property Reference.

SSLCertHash[]

array of uint8

See SSLCertHash in the Metabase Property Reference.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also