Powershell IIS 7.5中的xLogPeriod错误
我在IIS 7.5中使用PowerShell DSC设置网站的日志文件滚动时间表时出错。下面的脚本Powershell IIS 7.5中的xLogPeriod错误,powershell,iis,iis-7.5,powershell-dsc,Powershell,Iis,Iis 7.5,Powershell Dsc,我在IIS 7.5中使用PowerShell DSC设置网站的日志文件滚动时间表时出错。下面的脚本 配置测试配置 { 导入DSCRSource–ModuleName PSDesiredStateConfiguration 导入DSCRSource-ModuleName xWebAdministration 节点本地主机 { WindowsFeatureIIS { 确保=“在场” Name=“Web服务器” } xWebsite默认站点 { 确保=“在场” Name=“默认网站” LogForma
配置测试配置
{
导入DSCRSource–ModuleName PSDesiredStateConfiguration
导入DSCRSource-ModuleName xWebAdministration
节点本地主机
{
WindowsFeatureIIS
{
确保=“在场”
Name=“Web服务器”
}
xWebsite默认站点
{
确保=“在场”
Name=“默认网站”
LogFormat=“W3C”
LogPeriod=“每小时”
DependsOn=“[WindowsFeature]IIS”
}
}
}
给我一个错误:
每小时不是Int32的有效值
当目标设置已经是每小时一次并且错误在IIS 8.0中不存在时,我不会得到错误。我的环境是:
- Windows Server 2008 R2标准6.1(版本7601:Service Pack 1)
- IIS 7.5
- Powershell 5.0
- xWebAdministration 1.17.0.0