Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Get public folder item count command takes forever

$
0
0

Hi

Am running the below command and for about 20 folders having about 2000 items it takes more than an hour to complete

$pffolder has the publicfolder path

pffolders= get-content <text file having folders list>

foreach($pffolder in $pffolders){

Get-PublicFolder $PFFOLDER  -recurse -Server servername | Get-PublicFolderStatistics | select name,itemcount | out-file

}

Is there a better way to make this run faster.


Gopi


Viewing all articles
Browse latest Browse all 2562