Solved

Public Folder Statistics--Powershell error

Posted on 2014-01-23
5
908 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

628 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