Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell IIS 7.5中的xLogPeriod错误_Powershell_Iis_Iis 7.5_Powershell Dsc - Fatal编程技术网

Powershell IIS 7.5中的xLogPeriod错误

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

我在IIS 7.5中使用PowerShell DSC设置网站的日志文件滚动时间表时出错。下面的脚本

配置测试配置
{
导入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
有什么想法吗?谢谢大家!

此错误由pull请求修复,并在中发布