-
Notifications
You must be signed in to change notification settings - Fork 149
xWebSiteDefaults
Johan Ljunggren edited this page Dec 6, 2023
·
2 revisions
Important
This resource has been renamed in the latest release, see WebSiteDefaults. Bug fixes and new functionality will only be added to the renamed resource.
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
IsSingleInstance | Key | String | Specifies the resource is a single instance, the value must be 'Yes' | Yes |
LogFormat | Write | String | sites/siteDefaults/logFile/logFormat |
W3C , IIS , NCSA , Custom
|
LogDirectory | Write | String | sites/siteDefaults/logFile/directory | |
TraceLogDirectory | Write | String | sites/siteDefaults/traceFailedRequestsLogging/directory | |
DefaultApplicationPool | Write | String | sites/applicationDefaults/applicationPool | |
AllowSubDirConfig | Write | String | sites/virtualDirectoryDefaults/allowSubDirConfig |
true , false
|
The xWebSiteDefaults
DSC resource is used to...
- Target machine must be running Windows Server 2012 R2 or later.
All issues are not listed here, see here for all open issues.
An example of configuring the website default settings. This examples show how to use xWebSiteDefaults for configuring the website default settings.
Configuration Sample_xWebSiteDefaults
{
param
(
# Target nodes to apply the configuration
[string[]]$NodeName = 'localhost'
)
# Import the module that defines custom resources
Import-DscResource -Module xWebAdministration
Node $NodeName
{
xWebSiteDefaults SiteDefaults
{
IsSingleInstance = 'Yes'
LogFormat = 'IIS'
LogDirectory = 'C:\inetpub\logs\LogFiles'
TraceLogDirectory = 'C:\inetpub\logs\FailedReqLogFiles'
DefaultApplicationPool = 'DefaultAppPool'
AllowSubDirConfig = 'true'
}
}
}
- Home
- IisFeatureDelegation
- IisLogging
- IisMimeTypeMapping
- IisModule
- SslSettings
- WebApplication
- WebApplicationHandler
- WebAppPool
- WebAppPoolDefaults
- WebConfigProperty
- WebConfigPropertyCollection
- WebSite
- WebSiteDefaults
- WebVirtualDirectory
- xIisFeatureDelegation
- xIisHandler
- xIisLogging
- xIisMimeTypeMapping
- xIisModule
- xSslSettings
- xWebApplication
- xWebAppPool
- xWebAppPoolDefaults
- xWebConfigKeyValue
- xWebConfigProperty
- xWebConfigPropertyCollection
- xWebSite
- xWebSiteDefaults
- xWebVirtualDirectory