Solved

Public Folder Statistics--Powershell error

Posted on 2014-01-23
5
876 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:kt KTAdmin
  • 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:kt KTAdmin
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:kt KTAdmin
ID: 39804012
Thanks much!! You've answered both questions.
0
 

Author Closing Comment

by:kt KTAdmin
ID: 39804016
Both questions were answered.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a mailbox database 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 Servers >> Data…
To show how to generate a certificate request 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 Servers >> Certificates…

757 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

18 Experts available now in Live!

Get 1:1 Help Now