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
ter'.
At line:1 char:17
+ get-publicfolder  <<<< -server folio-exchange -identity -\DefaultPublicFolder\Prices Master -Recurse -resultsize unlimited
staffs964Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
AkhaterConnect With a Mentor Commented:
the solution to that is to include single quotes after your double quotes something like

"'public folder name'" will work

more info http://www.zerohoursleep.com/2009/12/managing-spaces-in-addreplicatopfrecursiveps1-script/
0
 
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
0
 
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! :(
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
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
0
 
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.....
0
 
staffs964Author Commented:
Point taken, Thank You
0
All Courses

From novice to tech pro — start learning today.