Solved

Public Folder Statistics--Powershell error

Posted on 2014-01-23
5
885 Views
Last Modified: 2014-01-23
When running the following command, I get the following error:


PS C:\Powershell Cmd>Get-PublicFolderItemStatistics -identity Almeren  (this is a top-level folder)

No existing 'PublicFolder' matches the following Identity: 'almere'. Make sure that you specified the correct 'PublicFo
lder' Identity and that you have the necessary permissions to view 'PublicFolder'.
    + CategoryInfo          : NotSpecified: (0:Int32) [Get-PublicFolderItemStatistics], MapiOperationException
    + FullyQualifiedErrorId : 254EF81F,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderItemStatistics

What the correct syntax? Should I put the server name first? (which I tried. Same error)


Also tried

Get-PublicFolderItemStatistics -Identity "Almeren" | Select Subject,LastModificationTime,HasAttachments,ItemType,MessageSize | Export-CSV C:\PFItemStats.csv
0
Comment
Question by:K Anthony O365
  • 3
  • 2
5 Comments
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 500 total points
ID: 39803864
You have to do the full path for identity.
So if the folder is top level, it will be this:

Get-PublicFolderItemStatistics -identity "\Folder"  

If it is a sub folder then it will be

Get-PublicFolderItemStatistics -identity "\Folder\SubFolder\"

Note the use of " " and you have to use -identity in my experience.

Simon.
0
 

Author Comment

by:K Anthony O365
ID: 39803979
Is there a way to get the Stats of all PF at one time?
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39803995
Do you realise what it pulls out? It is information about every item, so if you have large public folders it will cough out a lot of content.

I haven't tried this, as I don't have a small public folder database to test it on, but this may work:

get-publicfolderitemstatistics  -identity "\" -Recurse

I know that works for other commands with public folders, but I don't really want to try it with a live system myself.

Simon.
0
 

Author Comment

by:K Anthony O365
ID: 39804012
Thanks much!! You've answered both questions.
0
 

Author Closing Comment

by:K Anthony O365
ID: 39804016
Both questions were answered.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now