unable to obtain any results from powershell scripts

Hello Experts,

I've been trying to run some PowerShell scripts that I did download from Microsoft script site and exchange server pro, and it seems like these script are only read, and do not generate any reports,

Can you please check the attached scripts, and let me know if the script is written to only read values,? I suspect there is something where all the code is on comment
Add-MailboxFolderPermissions.txt
Remove-MailboxFolderPermissions.txt
Get-MailboxReport.txt
Jerry SeinfieldAsked:
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.

AmitIT ArchitectCommented:
What level of rights you have on Exchange server?
0
footechCommented:
The scripts have some output to the console, and the last one also does to .CSV.  I haven't run them, but it looks like depending on what the scripts find it's possible to have no output.
0
Jerry SeinfieldAuthor Commented:
I have the Exchange organization rights, which mean I have full access to Exchange

Can someone please run these scripts, and let me know your findings?
0
Introducing the "443 Security Simplified" Podcast

This new podcast puts you inside the minds of leading white-hat hackers and security researchers. Hosts Marc Laliberte and Corey Nachreiner turn complex security concepts into easily understood and actionable insights on the latest cyber security headlines and trends.

Jerry SeinfieldAuthor Commented:
Any updates to my last question?
0
Jerry SeinfieldAuthor Commented:
Can someone please respond my last question?
0
footechCommented:
I won't be able to run the scripts.  You can request attention to the question if you'd like.

It'd be a good idea if you post a screenshot of the command that you run in order to run the script and any output (say, just for Get-MailboxReport.ps1).
0
pcmghouseCommented:
the first two scripts are for assigning permissions on all the folders of a mailbox, instead of giving full access to the mailbox.
They do not produce any output for your view. you need to verify the permissions with the command get-mailboxfolderpermission.
0

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
footechCommented:
They do not produce any output for your view
That is incorrect.  It is possible for them to not produce output, but if (for example using the first script)
@(Get-MailboxFolderStatistics $Mailbox | Where {!($exclusions -icontains $_.FolderPath)} | Select FolderPath)
returns anything, then for each folder you will get a message "Adding $user to $identity with $access permissions".  If that command doesn't return anything then you won't get any output.  The second script is similar.
This is all as I mentioned in my first post.
0
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
Powershell

From novice to tech pro — start learning today.

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.