Avatar of E=mc2
E=mc2Flag for Canada

asked on 

Powershell script error when trying to access M365 online

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


PowershellExchangeMicrosoft 365Scripting Languages

Avatar of undefined
Last Comment
Seth Simmons
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of footech
footech
Flag of United States of America image

General tip for you.  Any time you get the error, "The term '<whatever>' 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." - you've only got a few possible options:
 - you miss-typed.  Double check your spelling!
 - your current location isn't correct, i.e. the path is incorrect
 - the module that includes the cmdlet isn't present (or more rarely, it can't be loaded).  Check that you have the appropriate module installed.
 - your PowerShell session is borked.  Close the current and start a new one.

Other causes are very rare.
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: 'Vasil Michev (MVP)' (https:#a43302556)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo