症状
Export-ModernPublicFolderStatistics.ps1 脚本在 Microsoft Exchange Server 2019 中不起作用,你会收到类似如下的错误消息:
解决方法
若要解决此问题,请安装 Exchange Server 2019 的累积更新 5 或 Exchange Server 2019 的更高累积更新。
参考资料
了解 Microsoft 用于描述软件更新的术语。
解决方法
若要解决此问题,请使用以下更改更新脚本:
$script:Exchange16MajorVersion = 15;
$script:Exchange16MinorVersion = 1;
$script:Exchange16CUBuild = 669;
$script:Exchange17MajorVersion = 15;
$script:Exchange17MinorVersion = 2;
$script:Exchange17CUBuild = 196;
And
$hasMinE 16Version = ( ($version.Major -eq $script:Exchange16MajorVersion) -and
($version。次要 -eq $script:Exchange16MinorVersion) -and
($version。Build -ge $script:Exchange16CUBuild) ) ;
$hasMinE 17版本 = ( ($version。Major -eq $script:Exchange17MajorVersion) -and
($version。次要 -eq $script:Exchange17MinorVersion) -and
($version。Build -ge $script:Exchange17CUBuild) ) ;
if (!$hasMinE 15Version -and !$hasMinE 16Version -and !$hasMinE 17Version)
{
$failedServers += $server。Fqdn;
}