IIsWebService (WMI)
This class corresponds to the IIsWebService IIS Admin object, and contains the methods and read-only properties for the object.
Methods in Vtable Order
The IIsWebService object defines the following methods, in addition to those inherited from Win32_Service (WMI).
Method |
Description |
---|---|
The AddDependency method adds an entry in ApplicationDependencies for a single application. |
|
The AddExtensionFile method adds an entry to ISAPIRestrictions or CGIRestrictions identified by filepath. |
|
The CreateNewSite method creates a new Web site on an IIS 6.0 server. CreateNewSite works in the following way:
|
|
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. |
|
The DisableExtensionFile method sets the Access flag on each of the ISAPIRestrictions or CGIRestrictions identified by filepath to 0 (Deny). |
|
The DisableWebServiceExtension method sets the Access flag on each of the ISAPIRestrictions or CGIRestrictions identified by GroupID to 0 (Deny). |
|
The EnableApplication method enables the Web service extensions required by a specific application. |
|
The EnableExtensionFile method sets the Access flag on each of the extension files identified by filepath to 1 (Allow). |
|
The EnableWebServiceExtension method sets the Access flag on each of the ISAPIRestrictions or CGIRestrictions identified by GroupID to 1 (Allow). |
|
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. |
|
The ListApplications method lists the applications that can be enabled on the server. |
|
The ListExtensionFiles method lists the extension files that can be enabled on the server. This essentially enumerates all entries in WebSvcExtRestrictionList. |
|
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. |
|
The QueryGroupIDStatus method lists applications that depend on the given set of ISAPI or CGI extensions. |
|
The RemoveApplication method removes an entry in ApplicationDependencies for a single application. |
|
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