Anthony K O365
asked on
Public Folder Statistics--Powershell error
When running the following command, I get the following error:
PS C:\Powershell Cmd>Get-PublicFolderItemSt atistics -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-PublicFolderItemStati stics], MapiOperationException
+ FullyQualifiedErrorId : 254EF81F,Microsoft.Exchang e.Manageme nt.MapiTas ks.GetPubl icFolderIt emStatisti cs
What the correct syntax? Should I put the server name first? (which I tried. Same error)
Also tried
Get-PublicFolderItemStatis tics -Identity "Almeren" | Select Subject,LastModificationTi me,HasAtta chments,It emType,Mes sageSize | Export-CSV C:\PFItemStats.csv
PS C:\Powershell Cmd>Get-PublicFolderItemSt
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-PublicFolderItemStati
+ FullyQualifiedErrorId : 254EF81F,Microsoft.Exchang
What the correct syntax? Should I put the server name first? (which I tried. Same error)
Also tried
Get-PublicFolderItemStatis
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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-publicfolderitemstatis tics -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.
I haven't tried this, as I don't have a small public folder database to test it on, but this may work:
get-publicfolderitemstatis
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.
ASKER
Thanks much!! You've answered both questions.
ASKER
Both questions were answered.
ASKER