troubleshooting Question

Powershell script error when trying to access M365 online

Avatar of E=mc2
E=mc2Flag for Canada asked on
PowershellExchangeMicrosoft 365Scripting Languages
3 Comments1 Solution15 ViewsLast Modified:
   Connect-EXOPSSession : The term 'Connect-EXOPSSession' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:....PScript.ps1:98 char:5
+     Connect-EXOPSSession
+     ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Connect-EXOPSSession:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


I am getting the above error when trying to run a Powershell script to connect to M365 to pull data...


ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros