whats wrong with my script?

[PS] C:\Documents and Settings\Administrator.FOLIOADMIN>AddUsersToPFRecursive.ps
1 -TopPublicFolder "\Prices Master" -User "veronica" -Permission Reviewer
Get-PublicFolder : A parameter cannot be found that matches parameter name 'Master'.
At line:1 char:17
+ get-publicfolder  <<<< -identity \Prices Master -Recurse -resultsize unlimite
d
staffs964Asked:
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.

 
MegaNuk3Commented:
Try
"Prices Master"
Without the backslash
0
 
staffs964Author Commented:
thanks megaNuk3 but that didnt work out either, see result below

[PS] C:\Documents and Settings\Administrator.FOLIOADMIN>AddUsersToPFRecursive.ps
1 -TopPublicFolder "Prices Master" -User "veronica" -Permission Reviewer
Get-PublicFolder : A parameter cannot be found that matches parameter name 'Master'.
At line:1 char:17
+ get-publicfolder  <<<< -identity Prices Master -Recurse -resultsize unlimited
[PS] C:\Documents and Settings\Administrator.FOLIOADMIN>
0
 
MegaNuk3Commented:
What happens if you try:
get-publicfolder -identity "\Prices Master" -Recurse -resultsize unlimited
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
MegaNuk3Commented:
Is "\Prices Master" a top level public folder? If not, then you have to provide the full PF path.
0
 
staffs964Author Commented:
I assumed it was a top leve believing that the first two wre default levels this is the actual path which is: Public Folders\All Public Folders\Prices Master

I ran both ways and got these negative results, it has to be a syntax issue?

[PS] C:\Documents and Settings\Administrator.FOLIOADMIN>AddUsersToPFRecursive.ps
1 -TopPublicFolder "\All Public folders\Prices Master" -User "veronica" -Permiss
ion Reviewer
Get-PublicFolder : A parameter cannot be found that matches parameter name 'Pub
lic'.
At line:1 char:17
+ get-publicfolder  <<<< -identity \All Public folders\Prices Master -Recurse -
resultsize unlimited
[PS] C:\Documents and Settings\Administrator.FOLIOADMIN>AddUsersToPFRecursive.ps
1 -TopPublicFolder "\Public Folders\All Public folders\Prices Master" -User "ver
onica" -Permission Reviewer
Get-PublicFolder : A parameter cannot be found that matches parameter name 'Fol
ders\All'.
At line:1 char:17
+ get-publicfolder  <<<< -identity \Public Folders\All Public folders\Prices Master -Recurse -resultsize unlimited
[PS] C:\Documents and Settings\Administrator.FOLIOADMIN>
0
 
MegaNuk3Commented:
Did you try my Get-publicFolder command I posted above?
0
 
staffs964Author Commented:
oops sorry, yes it returned positive with the full sub-directory listing, here the top few lines:

[PS] C:\Documents and Settings\Administrator.FOLIOADMIN>get-publicfolder -identi
ty "\Prices Master" -Recurse -resultsize unlimited

Name                                    Parent Path
----                                    -----------
Prices Master                           \
2005-6 Prices                           \Prices Master
2008 Prices                             \Prices Master
Prices                                  \Prices Master\2008 Prices
777 Fund                                \Prices Master
0
 
MegaNuk3Commented:
You are seeing a bug in the script with public folders that have spaces in their names. Fix is here:
http://vadimszenins.blogspot.com/2009/06/fixin-space-public-folder-name-issue-in.html
0

Experts Exchange Solution brought to you by ConnectWise

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
 
staffs964Author Commented:
I figured it out

it should be this "\'Prices Master'"   ' ' to allow for the space

thanks for you asistance though

staffs964 in the Caribbean
0
 
staffs964Author Commented:
ha we saw the same fix..  i will apply points for you.
0
 
MegaNuk3Commented:
Glad you got it sorted.
0
 
Glen KnightCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
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.