Solved

Public Folder Statistics--Powershell error

Posted on 2014-01-23
5
896 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create an Address List 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 Organization >> Ad…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

856 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