This is a small piece of code to run it in EMS and to help you finding differences in item number in a public folder structure. The powershell script shows the number of elements in each sub folder for the both of Exchange 2010 servers, which public folder replicas are located on. Below is an example output of the script.
[PS] C:\>C:\scripts\get-pffolderdiffs.ps1
Path ItemCount_SRV1 ItemCount_SRV2
---- -------------- --------------
\PF1\VPC 0 0
\PF1\VPC\Exec 1739 1739
\PF1\VPC\Exec\2007 20406 20406
\PF1\VPC\Exec\2008 21952 21952
\PF1\VPC\Exec\2009 27804 27804
\PF1\VPC\Exec\2010 16888 16888
\PF1\VPC\Exec\2011 39021 1869
\PF1\VPC\Exec\2012 15734 15734
Please note that the script is provided AS IS without any guarantee:
$PF='\PF1'
$SR1='SRV1'
$SR2='SRV2'
Get-PublicFolder -Server $SR1 -ResultSize unlimited -Identity $PF -Recurse `
| Sort-Object -Property @{expression={$_.ParentPath + '\' + $_.Name}} |
ft @{label="Path"; expression={ $_.ParentPath + "\" + $_.Name }},
@{label="ItemCount_$SR1"; expression={ `
(get-PublicFolderStatistics -Server $SR1 ($_.ParentPath + '\' + $_.Name) `
| Select-Object -ExpandProperty ItemCount) }}, `
@{label="ItemCount_$SR2"; expression={ `
(get-PublicFolderStatistics -Server $SR2 ($_.ParentPath + '\' + $_.Name) `
| Select-Object -ExpandProperty ItemCount) }} -auto
Find differences in Public Folder replicas
Eingestellt von
Unknown
Wednesday, December 5, 2012
11:05
Subscribe to:
Post Comments (Atom)
0 Kommentare :: Find differences in Public Folder replicas
Post a Comment