{"id":660,"date":"2017-11-07T19:26:53","date_gmt":"2017-11-07T17:26:53","guid":{"rendered":"https:\/\/msb365.abstergo.ch\/?p=660"},"modified":"2023-06-23T13:13:22","modified_gmt":"2023-06-23T11:13:22","slug":"enable-um-multiple-exchange-mailboxes","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=660","title":{"rendered":"Enable UM for multiple Exchange Mailboxes"},"content":{"rendered":"<h4>Background<\/h4>\n<p>Some time ago I was on a very interesting project about on-premise infrastructure, Exchange online and 3<sup>rd<\/sup> party player for Skype for Business. This constellation had a couple of challenges to cope with.<\/p>\n<p>The Exchange organisation was set up in a hybrid mode. All warmbody Mailboxes where located on the Exchange online and all coldbody mailboxes on the on-prem servers.<\/p>\n<p>This customer is using Skype for Business as a service from a third party provider. What means that I wasn\u2019t able to login directly to the Skype server.<\/p>\n<p>I will try to describe how the setup of this constellation was made in a later post on this page.<\/p>\n<h4>Challenges<\/h4>\n<p>After all warmbody mailboxes where migrated to Exchange Online, I had to enable the UM Policy for all users.<\/p>\n<p>This is not really a big deal if you are doing it for one user. All you need is the Enable-UMMailbox cmdlet with the mailbox Id and the extension parameter. Of course there are more parameters you can set. For example the PIN or which UM policy to use.\u00a0 You can find more about the Enable-UMMailbox cmdlet here:<\/p>\n<p><a href=\"https:\/\/technet.microsoft.com\/de-de\/library\/aa998033%28v=exchg.160%29.aspx?f=255&MSPPError=-2147217396\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/technet.microsoft.com\/de-de\/library\/aa998033%28v=exchg.160%29.aspx?f=255&MSPPError=-2147217396<\/a><\/p>\n<p>The challenge I had was to enable the UM role for more than 400 warmbody mailboxes. To do that you can follow different ways. The easiest way is to simply login to your Skype for Business server. But as I mentioned earlier in this post, the Skype for Business server is managed by a third party company. Thus, I was not able to do that.<\/p>\n<p>Another way is to do it directly on the Exchange Online server through remote PowerShell.<\/p>\n<p>But, here we have another challenge: The Enable-UMMailbox cmdlet is an Exchange command, but the extension I need is from the phone number, which is usually the Active Directory object field \u201cTelephones\u201d.<\/p>\n<p>So how to do that now?<\/p>\n<h4>Solution<\/h4>\n<p>First thing I did was to search the web for some solutions for this challenge. After I wasn\u2019t able to find any solution which could help me, I started to write a script, which worked out perfectly for me!<\/p>\n<p>I am now going to present you this script and how to use it in it\u00b4s current version (2.5).<\/p>\n<p>The old Post was about the version 1.0. There you were only able to enable UM in Exchange Online and you had to modify parts of the script for the extension length.<\/p>\n<p>Whats new in the current version (2.52)?<\/p>\n<p>Well, this!<\/p>\n<ul>\n<li>Option to enable UM on-premise (on-premise)<\/li>\n<li>Set extension number length as variable (on-premise, online)<\/li>\n<li>check if the Azure AD module is installed including a forward to the download site (online)<\/li>\n<li>Choosing between Mailbox types<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<h4>Download<\/h4>\n<p>You can download the whole script from Microsoft Technet:\u00a0<a href=\"https:\/\/gallery.technet.microsoft.com\/Enable-UM-in-exchange-8a221ec1\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/gallery.technet.microsoft.com\/Enable-UM-in-exchange-8a221ec1<\/a><\/p>\n<p>\u00a0<\/p>\n<p>Here now how to use the script:<\/p>\n<h5>Enable UM in Exchange Online for multiple mailboxes<\/h5>\n<p>.CHANGE LOG<\/p>\n<p>V1.00, 2017\/11\/03 \u2013 Initial version \u2013 (Enable UM in exchange online)<br \/>\nV2.00, 2017\/11\/14 \u2013 Added on-premise as a options | choose between Office365 and on-premise environment after starting Script to enable UM<br \/>\nV2.10, 2017\/11\/18 \u2013 Added the option to choose the Extension number length during the script execution, Added AzureAD module check (if O365 is selected)<br \/>\nV2.50, 2017\/11\/20 \u2013 Added support for MSonline module, added comments, added error count for summary<\/p>\n<h6><strong>OPTION: Office 365<\/strong><\/h6>\n<p>After starting the script in your Windows PowerShell console,\u00a0or through right-click \u2013> run with PowerShell (No need to start it over the Exchange Management Shell),<\/p>\n<p>you will need to choose one of the two options you want go with. In this case we start with the Office 365 option [1].<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-764\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-5.png\" alt=\"\" width=\"919\" height=\"638\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-5.png 919w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-5-600x417.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-5-300x208.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-5-768x533.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-5-780x542.png 780w\" sizes=\"(max-width: 919px) 100vw, 919px\" \/><\/p>\n<p>The script now checks if\u00a0 the Azure Active Directory module is available on your machine, if not you will receive the following output:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-765\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.1-1.png\" alt=\"\" width=\"922\" height=\"642\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.1-1.png 922w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.1-1-600x418.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.1-1-300x209.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.1-1-768x535.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.1-1-780x543.png 780w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/p>\n<p>If you receive this message, and you choose the option [Y], your browser will be opened and you will be redirected to the Microsoft download page.<\/p>\n<p>Here you can see the content of the page:\u00a0<a href=\"http:\/\/connect.microsoft.com\/site1164\/Downloads\/DownloadDetails.aspx?DownloadID=59185\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/connect.microsoft.com\/site1164\/Downloads\/DownloadDetails.aspx?DownloadID=59185<\/a><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-766\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.2-1.png\" alt=\"\" width=\"1274\" height=\"1024\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.2-1.png 1274w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.2-1-600x482.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.2-1-300x241.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.2-1-768x617.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.2-1-1024x823.png 1024w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2.2-1-780x627.png 780w\" sizes=\"(max-width: 1274px) 100vw, 1274px\" \/><\/p>\n<p>You just need to download the msi file from the web site, install it and then re-run the script again. You should close the current PowerShell console window and open a new one, as well.<\/p>\n<p>If you have installed the Azure AD module, the script follows its procedure to the O365 credentials prompt.<\/p>\n<p>Here, just enter the Microsoft Office365 credentials of an account that has administrative permissions in your O365 tenant and Exchange Online.<\/p>\n<p>Usually this is your\u00a0<a href=\"mailto:ALIAS@contoso.onmicrosoft.com\">ALIAS@contoso.onmicrosoft.com<\/a>\u00a0account, or in hybrid environments your on-premise e-mail, resp. UPN.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-767\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-5.png\" alt=\"\" width=\"898\" height=\"609\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-5.png 898w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-5-600x407.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-5-300x203.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-5-768x521.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-5-780x529.png 780w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/p>\n<p>After entering your credentials, you will be asked for which Mailbox Type(s) you wanna enable the UM Role. (multiple are possible)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-859\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3.png\" alt=\"\" width=\"897\" height=\"656\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3.png 974w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-600x439.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-300x219.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-768x561.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-780x570.png 780w\" sizes=\"(max-width: 897px) 100vw, 897px\" \/><\/p>\n<p>Now you will be asked to confirm your choose:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-860\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3.png\" alt=\"\" width=\"891\" height=\"651\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3.png 974w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-600x439.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-300x219.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-768x561.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-780x570.png 780w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/p>\n<p>In the next step you will have to enter the length of your UM extension number. By this, you choose how many of the last digits of a users phone number which will be used as the extension number in Skype.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-768\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-6.png\" alt=\"\" width=\"869\" height=\"638\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-6.png 869w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-6-600x441.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-6-300x220.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-6-768x564.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-6-780x573.png 780w\" sizes=\"(max-width: 869px) 100vw, 869px\" \/><\/p>\n<p>Now the script is connecting remotely to Exchange Online and AzureAD.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-674\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-1.png\" alt=\"\" width=\"887\" height=\"358\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-1.png 687w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-1-600x242.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-1-300x121.png 300w\" sizes=\"(max-width: 887px) 100vw, 887px\" \/><\/p>\n<p>After the successful login, the script gets your existing UM policies and lists them for you in the form of a menu. Now you can easily choose the UM policy you want to enable for your mailboxes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-675\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4.png\" alt=\"\" width=\"899\" height=\"419\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4.png 526w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-300x140.png 300w\" sizes=\"(max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>The script now searches all mail boxes which are not enabled for UM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-676\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5.png\" alt=\"\" width=\"899\" height=\"439\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5.png 684w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-600x293.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-300x146.png 300w\" sizes=\"(max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>In a next step, UM will be enabled for any found mail box with the UM policy you picked and the extension number consisting of the last n digits of the users phone number.<\/p>\n<p>After all mailboxes are processed, you will receive this message at the end, which shows you how many mailboxes where enabled for UM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-677\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7.png\" alt=\"\" width=\"898\" height=\"315\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7.png 795w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-600x211.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-300x105.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-768x270.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-780x274.png 780w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/p>\n<p>The script creates a log file in the path, where you saved and ran the script.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-678\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/8.png\" alt=\"\" width=\"694\" height=\"213\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/8.png 479w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/8-300x92.png 300w\" sizes=\"(max-width: 694px) 100vw, 694px\" \/><\/p>\n<p>\u00a0<\/p>\n<p>In this log file you can see every successful and failed try of enabling UM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large x_wp-image-679\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-1024x741.png\" alt=\"\" width=\"1024\" height=\"741\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-1024x741.png 1024w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-600x434.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-300x217.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-768x555.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-780x564.png 780w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9.png 1048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h6><\/h6>\n<h6><strong>OPTION: ON-PREMISE<\/strong><\/h6>\n<p>Running the Script on-premise is almost equal to the O365 mode. Of course there are some different steps which have to be done.<\/p>\n<p>After starting the script in your Windows PowerShell console (No need to start it over the Exchange Management Shell),<\/p>\n<p>you will need to choose one of the two options you want go with. In this case we start with the On-Premises option [2].<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-769\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-6.png\" alt=\"\" width=\"864\" height=\"638\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-6.png 864w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-6-600x443.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-6-300x222.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-6-768x567.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/1-6-780x576.png 780w\" sizes=\"(max-width: 864px) 100vw, 864px\" \/><\/p>\n<p>Now you need to enter your Exchange admin credentials for your on-premise environment:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-770\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2-3.png\" alt=\"\" width=\"867\" height=\"640\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2-3.png 867w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2-3-600x443.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2-3-300x221.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2-3-768x567.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/2-3-780x576.png 780w\" sizes=\"(max-width: 867px) 100vw, 867px\" \/><\/p>\n<p>After entering your credentials, you will be asked for which Mailbox Type(s) you wanna enable the UM Role. (multiple are possible)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-859\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3.png\" alt=\"\" width=\"897\" height=\"656\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3.png 974w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-600x439.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-300x219.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-768x561.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-3-780x570.png 780w\" sizes=\"(max-width: 897px) 100vw, 897px\" \/><\/p>\n<p>Now you will be asked to confirm your choose:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-860\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3.png\" alt=\"\" width=\"891\" height=\"651\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3.png 974w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-600x439.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-300x219.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-768x561.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-3-780x570.png 780w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/p>\n<p>In the next step you will have to enter the length of your UM extension number (same as in the O365 option):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-771\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-7.png\" alt=\"\" width=\"869\" height=\"638\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-7.png 869w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-7-600x441.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-7-300x220.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-7-768x564.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/3-7-780x573.png 780w\" sizes=\"(max-width: 869px) 100vw, 869px\" \/><\/p>\n<p>After you have set the extension length, you will be asked to enter the name of an Exchange (CAS) server inside of your organization.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-772\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-2.png\" alt=\"\" width=\"889\" height=\"641\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-2.png 889w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-2-600x433.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-2-300x216.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-2-768x554.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-2-780x562.png 780w\" sizes=\"(max-width: 889px) 100vw, 889px\" \/><\/p>\n<p>if your server name and Exchange credentials are correct, the script connects to your exchange server:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-773\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-2.png\" alt=\"\" width=\"890\" height=\"641\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-2.png 890w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-2-600x432.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-2-300x216.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-2-768x553.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-2-780x562.png 780w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/p>\n<p>After the successful login, the script checks your existing UM Policies and list them for you in the form of a menu. Now you can easily choose the UM policy you want to enable for your mailboxes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-675\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4.png\" alt=\"\" width=\"899\" height=\"419\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4.png 526w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/4-300x140.png 300w\" sizes=\"(max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>\u00a0<\/p>\n<p>The script now searches all mail boxes which are not enabled for UM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-676\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5.png\" alt=\"\" width=\"899\" height=\"439\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5.png 684w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-600x293.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/5-300x146.png 300w\" sizes=\"(max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>In a next step, UM will be enabled for any found mail box with the UM policy you picked and the extension number consisting of the last n digits of the users phone number.<\/p>\n<p>\u00a0<\/p>\n<p>After all mailboxes are processed, you will receive this message at the end, which shows you how many mailboxes where enabled for UM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-677\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7.png\" alt=\"\" width=\"898\" height=\"315\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7.png 795w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-600x211.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-300x105.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-768x270.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/7-780x274.png 780w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/p>\n<p>The script creates a log file in the path, where you saved and ran this script.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone x_wp-image-678\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/8.png\" alt=\"\" width=\"694\" height=\"213\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/8.png 479w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/8-300x92.png 300w\" sizes=\"(max-width: 694px) 100vw, 694px\" \/><\/p>\n<p>\u00a0<\/p>\n<p>In this log file you can see every successful and failed try of enabling UM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large x_wp-image-679\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-1024x741.png\" alt=\"\" width=\"1024\" height=\"741\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-1024x741.png 1024w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-600x434.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-300x217.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-768x555.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9-780x564.png 780w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2017\/11\/9.png 1048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>Photo by\u00a0<a href=\"https:\/\/unsplash.com\/photos\/FZWivbri0Xk?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Namroud Gorguis<\/a>\u00a0on\u00a0<a href=\"https:\/\/unsplash.com\/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Unsplash<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Background Some time ago I was on a very interesting project about on-premise infrastructure, Exchange online and 3rd party player for Skype for Business. This constellation had a couple of challenges to cope with. The Exchange organisation was set up in a hybrid mode. All warmbody Mailboxes where located on the Exchange online and all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1923,2,3],"tags":[],"class_list":["post-660","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365","category-exchange","category-powershell"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=660"}],"version-history":[{"count":34,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions"}],"predecessor-version":[{"id":5207,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions\/5207"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/media\/3346"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}