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
Jerry SeinfieldAsked:
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.

AmitIT ArchitectCommented:
What level of rights you have on Exchange server?
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.
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?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Jerry SeinfieldAuthor Commented:
Any updates to my last question?
Jerry SeinfieldAuthor Commented:
Can someone please respond my last question?
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).
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.

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
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.
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.