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 27
yo_beeDirector of Information TechnologyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeTwo SoftwareSoftware DeveloperCommented:
Please take a look at this TechNet article. It clearly states that you can only use this cmdlet for your own mailbox.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

timgreen7077Exchange 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_beeDirector 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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.