Server Class1
Exposes default configuration settings for applications, application pools, Web sites, and virtual directories on a Web server running IIS.
Syntax
class Server : Object
Methods
The following table lists the methods exposed by the Server
class.
Name | Description |
---|---|
BeginUpdateBatch | Begins a batch of configuration changes for the specified path. |
EndUpdateBatch | Ends a batch of configuration changes. |
Properties
The following table lists the properties exposed by the Server
class.
Name | Description |
---|---|
ApplicationDefaults |
A read/write ApplicationElementDefaults value that specifies the default application pool and protocols for new applications. |
ApplicationPoolDefaults |
A read/write ApplicationPoolElementDefaults value that contains the default properties for the ApplicationPool class. |
SiteDefaults |
A read/write SiteElementDefaults value that contains the default values for an IIS Web site. |
VirtualDirectoryDefaults |
A read/write VirtualDirectoryElementDefaults value that exposes default configuration settings for IIS virtual directories. |
Subclasses
This class contains no subclasses.
Remarks
The Server
object is a singleton object (that is, there is only one instance per computer) and, therefore, does not have any key properties.
Inheritance Hierarchy
Server
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
See Also
ApplicationElementDefaults Class
ApplicationPool Class
ApplicationPoolElementDefaults Class
ConfiguredObject Class
SiteElementDefaults Class
VirtualDirectoryElementDefaults Class