Get-Mailboxfolder returns error code "Mailbox does not exist"

Unable to use Get-MailboxFolder on other user's mailboxes.

I am using Exchange 2010.  
I am have rights to view and modify Folder Permissions.  

I get an error that Mailbox does not exist, but if I run the Get-Mailboxfolder against my mailbox it is successful.
LVL 25
yo_beeDirector of Information TechnologyAsked:
Who is Participating?
CodeTwo SoftwareConnect With a Mentor Software DeveloperCommented:
Please take a look at this TechNet article. It clearly states that you can only use this cmdlet for your own mailbox.
timgreen7077Exchange EngineerCommented:
Agreed you can't view the folder with that cmdlet. I also just attempted and I can only view my own folder. You can run the Get-MailboxFolderStatistics and get information about that folder. See below cmdlets:

Get-MailboxFolderStatistics -Identity username | select name, folderpath, itemsinfolder, itemsinfolderandsubfolders, folderandsubfoldersize | Export-Csv c:\temp\file.csv

Not sure what your trying to achieve but see if that helps.
yo_beeDirector of Information TechnologyAuthor Commented:
I am looking recursively add folder permissions.  That is the whole purpose of the Get-Mailboxfolder.  Is there a way to do that?
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

timgreen7077Connect With a Mentor Exchange EngineerCommented:
You would run the Add-MailboxFolderPermission for that. I personally don't add folder permissions via powershell because it's too cumbersome. The permissions have to be added properly, so I just have the user do it via outlook. A lot simpler and easier. See attachment, this is a doc i used in the past but i don't recommend adding permissions via powershell personally. Also if I remember the -recurse parameter isn't available. I only give full manage access via the shell. Anything more granular i have the user provide via outlook because of the need for hierarchy level access that will have to be in place.
yo_beeConnect With a Mentor Director of Information TechnologyAuthor Commented:
I ended  up exporting the folder and sub-folders to a PST.  This was the easiest method.  This is a one time job for a paralegal and after it is done she does not need access to the mailbox anymore.
timgreen7077Exchange EngineerCommented:
Makes perfect sense. For something like that, I would have done the same, especially if everything was in the same folder. For legal I would also give them ediscovery permissions so they can query mailboxes for mail is needed if mail is in different folders. Good deal with the pst.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.