Avatar of E=mc2
E=mc2Flag for Canada

asked on 

The term 'Connect-EXOPSSession' is not recognized as the name of a cmdlet in Powershell Script

The term 'Connect-EXOPSSession' is not recognized as the name of a cmdlet is being produced when I run a powershell script that just tried to connect to Exhange Online.
How can I correct this?

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

That isn't the normal cmdlet used to connect to Exchange Online.  Use "Connect-ExchangeOnline", assuming you have the Exchange Online Module v2 installed.
Fix1 :
Change those lines for:

Run these two lines before running the script:

Set-executionPolicy RemoteSigned
Install-Module ExchangeOnlineManagement -Allowclobber -force

Open in new window


Change that line Connect-EXOPSSession for:
Connect-ExchangeOnline

Open in new window


Fix2: Download and install the EXOPS module
Execute this link from Internet Explorer: HERE
This was taken from Office 365/login /Admin/show all/Exchange Admin Center/Hybrid / and select Powershell (2nd option) :)

And run again the ps

 

Footech that's a normal PS Module (if you're running on hybrid mode) the regular is the one you mention but the other already exists too and it's normal in hybrids. 
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:#a43293941)

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