Comments on: PowerShell Function to Connect to Office 365 Exchange Online https://practical365.com/powershell-function-connect-office-365/ Practical Office 365 News, Tips, and Tutorials Sun, 18 Apr 2021 11:16:29 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Dheerendra Singh https://practical365.com/powershell-function-connect-office-365/#comment-234314 Sun, 18 Apr 2021 11:16:29 +0000 https://www.practical365.com/?p=7801#comment-234314 Hi,

Connect-MsolService’ is not recognized in poweshell, newly setup kindly help to fix it.

]]>
By: Jan https://practical365.com/powershell-function-connect-office-365/#comment-156056 Mon, 13 Nov 2017 13:24:45 +0000 https://www.practical365.com/?p=7801#comment-156056 Hi Paul,
Thanks for the great blog, it saved me a lot of troubles and time!
I’m trying to stay away from MS as much as possible because of it’s painful administration but your blog makes it much less painful!
Thanks again.

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Paul Cunningham</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_154899'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_154899"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Paul Cunningham</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/powershell-function-connect-office-365/#comment-154899 Thu, 12 Oct 2017 23:08:58 +0000 https://www.practical365.com/?p=7801#comment-154899 In reply to Ashley poxon.

This script is for connecting a PowerShell session to Office 365 for management purposes. Not sure how your question relates to that.

]]>
By: Ashley poxon https://practical365.com/powershell-function-connect-office-365/#comment-154890 Thu, 12 Oct 2017 19:31:43 +0000 https://www.practical365.com/?p=7801#comment-154890 Hi Paul,

This is a really excellent article and works like a charm.

I was wondering, if you had 20 domains in O365 and you then added 3 users and used this script, that would be perfect. However, when a 4th person is on-boarded to O365 \ Exchange Online, and they need the 20 domains adding as smtp addresses, how would you use the script for just one user?

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Paul Cunningham</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_112250'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_112250"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Paul Cunningham</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/powershell-function-connect-office-365/#comment-112250 Tue, 11 Jul 2017 02:09:38 +0000 https://www.practical365.com/?p=7801#comment-112250 In reply to Kevin.

I really recommend you start learning to use PowerShell. Some tasks can only be performed in PowerShell so if you don’t learn it you will be limited in what you can do.

]]>
By: Kevin https://practical365.com/powershell-function-connect-office-365/#comment-112062 Mon, 10 Jul 2017 17:27:24 +0000 https://www.practical365.com/?p=7801#comment-112062 I am using Office 365 Small Bus. Premium and only know how to use the online UI ‘Exchange Admin Center’. How can I control the sent items behavior for shared mailboxes when delegates send mail as the mailbox, or on behalf of the mailbox using the web-based UI? I launch it via https://outlook.office365.com/ecp/

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Paul Cunningham</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_72101'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_72101"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Paul Cunningham</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/powershell-function-connect-office-365/#comment-72101 Mon, 10 Apr 2017 23:57:44 +0000 https://www.practical365.com/?p=7801#comment-72101 In reply to Doyle.

They aren’t shipping it as a separate module right now, so the short answer is, no.

Presumably one day they will ship it as a module.

Long answer, when you have it loaded you can work out the temp folder path where it’s been loaded from, copy those files to another location, and then you can reference that in scripts or whatever you need. Downside, it won’t auto-update the module each time you run it.

]]>
By: Cris Burke https://practical365.com/powershell-function-connect-office-365/#comment-72022 Mon, 10 Apr 2017 17:01:49 +0000 https://www.practical365.com/?p=7801#comment-72022 In reply to Doyle.

I would like to do the same thing.

]]>
By: Doyle https://practical365.com/powershell-function-connect-office-365/#comment-32358 Fri, 27 Jan 2017 17:22:51 +0000 https://www.practical365.com/?p=7801#comment-32358 I know this blog is a year old but wondered if there was a simple option for connecting to EXO while using MFA. The process now is to go to Exchange Hybrid page of your EXO admin center and click ‘Configure’ under the Powershell module. This is the only module that supports MFA to EXO. This adds the ‘Microsoft Exchange Online Powershell Module’ to my start menu but it’s not possible to call Connect-EXOPSSession from my regular powershell. Now I have to open a specific shell and run my scripts through that. It would be nice to have that module available in regular windows shell. Any ideas?

]]>
By: RM https://practical365.com/powershell-function-connect-office-365/#comment-21499 Sat, 03 Sep 2016 20:36:35 +0000 https://www.practical365.com/?p=7801#comment-21499 In reply to Paul Cunningham.

I’m having the same issue here. Commands work fine manually — All the remote commands import correctly including Exchange commands. But as a function, the MSOL commands are importing but not the Exchange commands (e.g. Get-MSOLuser works but Get-Mailbox is unrecognized).

]]>