Issue with running Exchange Report remotely in powershell

Trying to run an Exchange Environment report I found online which looks useful

Exchange Management Shell cannot be loaded
At C:\test\Get-ExchangeEnvironmentReport.ps1:825 char:3
+         throw "Exchange Management Shell cannot be loaded"

I'm running it remotely should I just run from one of the Exchange Servers

I see on some forums that Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
. $env:ExchangeInstallPath\bin\RemoteExchange.ps1
Connect-ExchangeServer -auto
should be added whats the correct syntax for this to work?

Using below line to run it, browsing to folder where the PS1 is and inputting the below to my own documents, (is there a handy way to enable C:\  for powershell)

.\Get-ExchangeEnvironmentReport -HTMLReport C:\Users\[user name]\Documents\report.html
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.

Senior IT System EngineerIT ProfessionalCommented:
Have you executed the script on Powershell console or Normal command prompt ?
Senior IT System EngineerIT ProfessionalCommented:
Try to use this lines:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://yourserver-VM/PowerShell/ -Authentication Kerberos
Import-PSSession $Session -AllowClobber

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
Indie101Author Commented:
Through Powershell

Do i have to be Exchange Admin for this to work?
IvanSystem EngineerCommented:

you need permissions on Exchange, off course.

Indie101Author Commented:
Onsite so in the middle of getting them (only at this site a few days a week if that makes sense) Will leave this open while i put in a change request thanks (I had assumed they would be given) :)
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.