Can anyone see what's wrong with my cyntax

[PS] D:\program files\microsoft\exchange server\Scripts>.\RemoveUserFromPFRecursiv
e.ps1 -Server "folio-exchange" -TopPublicFolder -"\DefaultPublicFolder\Prices Master" -user "xxxxx xxxxxx"
Get-PublicFolder : A parameter cannot be found that matches parameter name 'Mas
At line:1 char:17
+ get-publicfolder  <<<< -server folio-exchange -identity -\DefaultPublicFolder\Prices Master -Recurse -resultsize unlimited
Who is Participating?
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.

Neil RussellTechnical Development LeadCommented:
It does not like the space in Prices Master!
Although you quote in the command line, the script does not quote in the call to get-publicfolder. A known issue i believe
the solution to that is to include single quotes after your double quotes something like

"'public folder name'" will work

more info

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
Neil RussellTechnical Development LeadCommented:
Dont you just hate that! You give a CORRECT answer, someone comes along and adds a little bit of info to your answer and runs away with ALL the points! :(
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.

staffs964Author Commented:
Sorry about Neil... I do appreciate your effort, that said AKhater did provide the full answer and went to the trouble of providing the additional solution link, saving me alot of time.   Be big mate and take it on the chin.  Once again thank you
Neil RussellTechnical Development LeadCommented:
Yes maybe he gave you more, but that is the idea behind being able to provide split points to questions. If ONLY one person was awarded any points to every question, your sourse of experts would soon dry up.....
staffs964Author Commented:
Point taken, Thank You
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.