Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Export-ModernPublicFolderStatistics.ps1 is not working in Exchange Server 2019


View products that this article applies to.

Symptoms

The Export-ModernPublicFolderStatistics.ps1 script doesn’t work in Microsoft Exchange Server 2019, and you receive an error message that resembles the following:
[Asset 4536588]

↑ Back to the top


Resolution

To fix this issue, install the Cumulative Update 5 for Exchange Server 2019 or a later cumulative update for Exchange Server 2019.​

↑ Back to the top


References

Learn about the terminology that Microsoft uses to describe software updates.

↑ Back to the top


Workaround

To work around this issue, update the script with below changes:
         $script:Exchange16MajorVersion = 15;
         $script:Exchange16MinorVersion = 1;
         $script:Exchange16CUBuild = 669;
         $script:Exchange17MajorVersion = 15;
         $script:Exchange17MinorVersion = 2;
         $script:Exchange17CUBuild = 196;

And
         $hasMinE16Version = (($version.Major -eq $script:Exchange16MajorVersion) -and
                     ($version.Minor -eq $script:Exchange16MinorVersion) -and
                     ($version.Build -ge $script:Exchange16CUBuild));
         $hasMinE17Version = (($version.Major -eq $script:Exchange17MajorVersion) -and
                     ($version.Minor -eq $script:Exchange17MinorVersion) -and
                     ($version.Build -ge $script:Exchange17CUBuild));
if (!$hasMinE15Version -and !$hasMinE16Version -and !$hasMinE17Version)
{
$failedServers += $server.Fqdn;
}

↑ Back to the top


Keywords: export-modernpublicfolderstatistics.ps1 not working, CI112394, kbHotfixAuto, kbqfe, kbfix, kb

↑ Back to the top

Article Info
Article ID : 4536552
Revision : 7
Created on : 3/17/2020
Published on : 3/17/2020
Exists online : False
Views : 288