0

I am getting an error setting the log file rollover schedule for a web site in IIS 7.5 using PowerShell DSC. The following script

Configuration TestConfiguration
{
    Import-DscResource –ModuleName PSDesiredStateConfiguration
    Import-DscResource -ModuleName xWebAdministration

    Node localhost
    {
        WindowsFeature IIS
        {
            Ensure = "Present"
            Name = "Web-WebServer"
        }

        xWebsite DefaultSite
        {
            Ensure    = "Present"
            Name      = "Default Web Site"
            LogFormat = "W3C"
            LogPeriod = "Hourly"
            DependsOn = "[WindowsFeature]IIS"
        }
    }
}

gives me the error:

Hourly is not a valid value for Int32

I don't get the error when the target setting is already Hourly and the error doesn't occour in IIS 8.0. My environment is:

  • Windows Server 2008 R2 Standard 6.1 (Build 7601: Service Pack 1)
  • IIS 7.5
  • Powershell 5.0
  • xWebAdministration 1.17.0.0

Any ideas? Thank you!

Rosberg Linhares
  • 3,537
  • 1
  • 32
  • 35

1 Answers1

0

This bug was fixed by this pull request and released in the xWebAdministration 1.18.0.0.

Rosberg Linhares
  • 3,537
  • 1
  • 32
  • 35