Installing MDM Services

Mobile Device Management

Mobile Device Management (MDM) is an Office 365 service for securing and managing users’ mobile devices like iPhones, iPads, Androids, and Windows phones. Using MDM Office 365 administrators can

  • view an inventory of all enrolled devices that connect to an organization
  • create and manage device security policies
  • remotely wipe a device
  • view detailed device and management reports. Click open the steps below to activate and set up Mobile Device Management for Office 365.
1 - Activate MDM in Office 365

To manage mobile devices for Office 365 licensed users in your organization, you first need to activate the service in the Office 365 admin center.

Sign in to Office 365 with your work or school account.

Go to the Office 365 admin center.

Select Mobile Management.

Select “Let’s get started” to kick off the activation process

mdm get started page

It may take some time for the service to be provisioned. When it’s done, you’ll see the new Mobile Device Management for Office 365 page.

2 - Set up Mobile Device Management for Office 365

When the service is ready, complete the required steps to finish setup. You may need to click Manage settings on the Mobile Device Management for Office 365 page to see the following settings.

mdm confirmation

Configure an APNs Certificate for iOS devices

To manage iOS devices like iPad and iPhones, you need to create and install an APNs certificate in Office 365.

To do this,

1 – Next to Create an APNs Certificate for an iOS device, select Set up.

2 – Select Download your CSR file and save the Certificate signing request to a file location on your computer that you’ll remember.

mdm APNs certificate

3 – Select Next.

4 – Create an APN certificate.

  • Select Apple APNS Portal to open the Apple Push Certificates Portal.

mdm install apn 2

  • Sign in with an Apple ID.

IMPORTANT – Use a company Apple ID associated with an email account that will remain with your organization even if the user who manages the account leaves. Save this ID because you will need to use the same ID when it is time to renew the certificate.

  • Select Create a Certificate and accept the Terms of Use.
  • Browse to the Certificate signing request you downloaded to your computer from Office 365 and select Upload.
  • Download the APN certificate created by the Apple Push Certificate Portal to your computer.

TIP – if you are having trouble downloading the certificate, refresh your browser.

5 – Go back to Office 365 and select Next to get to the Upload APNS certificate page.

6 – Browse to the APN certificate you downloaded from the Apple Push Certificates Portal.

mdm upload APNS

7 – Select Finish.

Go back to Office 365 admin center > Mobile Management > Manage settings to complete setup.

Configure domains for MDM

If you do not have a custom domain associated with Office 365, you can skip this section. Otherwise, you’ll need to add DNS records for the domain at your DNS host. If you have added the records already, you are ready to proceed. After you add these records, Office 365 users in your organization who sign in with their mobile device with an email address that uses your custom domain can then be redirected to enroll in MDM for Office 365.

Find your domain registrar in the list provided in Create DNS records for Office 365 when you manage your DNS records and select the registrar name to go to step-by-step help for creating DNS records. Use those instructions to add the following two records:

mdm DNS records

After you add the two records, go back to Office 365 admin center > Mobile Device Management > Manage settings to complete setup.

Set up multi-factor authentication

If you don’t see multi-factor authentication (MFA) under Recommended steps you can skip this section. If this option is listed, we recommend you turn on MFA in the Azure AD portal to increase the security of the Mobile Device Management for Office 365 enrollment process. It is turned off by default.

MFA helps secure the sign in to Office 365 for mobile device enrollment by requiring a second form of authentication. Users are required to acknowledge a phone call, text message, or app notification on their mobile device after correctly entering their work account password. They can only enroll their device after this second form of authentication is completed. After users’ devices are enrolled in Mobile Device Management for Office 365, users can access Office 365 resources with just their work account.

Next to Set up multi-factor authentication, select Set up. To learn how to turn on MFA in the Azure AD portal, see Set up multi-factor authentication.

When you’re done, go back to Office 365 admin center > Mobile Management > Manage settings to complete setup.

Manage device security policies

Before you can start to manage mobile devices in your organization, you need to create a device security policy to enforce users to enroll their devices. This is covered in Step 3.

3 - Configure device security policies

Office 365 global administrators can create and deploy mobile device management policies to protect Office 365 organizational data. For example, to help prevent data loss if a user loses their device, you can create a policy to lock devices after 5 minutes of inactivity and have devices wiped after 3 sign-in failures.

In the Compliance Center, go to Devices to create device security policies and access rules.

mdm security policies

For step by step instructions on how to create a new policy, see Create and deploy mobile device management policies for Office 365.


  • When you create a new policy, you might want to set the policy to allow access and report policy violation where a user’s device isn’t compliant with the policy. This way you can see how many mobile devices would be impacted by the policy without blocking your organization’s access to Office 365.
  • Before deploying a new policy to everyone in your organization, we recommend you test it on the devices used by a small number of users.
  • Before deploying policies, let your organization know the potential impacts of enrolling a device in MDM for Office 365. Depending on how you set up the policies, non-compliant devices could be blocked access to Office 365 and data including installed applications, photos and personal information on an enrolled device could be deleted if the device is wiped. For more information, see Wipe a mobile device in Office 365.


4 - Enrolling users in MDM

After you’ve deployed a mobile device management policy, each licensed Office 365 user in your organization that the device policy applies to will receive an enrollment message the next time they sign into Office 365 from their mobile device. They must complete the enrollment and activation steps before they can access Office 365 email and documents. See Enroll your mobile device for work or school.

IMPORTANT If a user’s preferred language is not supported by the enrollment process, users may receive enrollment notification and steps on their mobile devices in another language. Not all languages supported in Office 365 are currently supported for the enrollment process on mobile devices.

Users with Android or iOS devices are required to install the Company Portal app as part of the enrollment process.

5 - Manage devices

Go to Office 365 admin center > Mobile Management to view device properties, access reports, and wipe devices.

mdm manage devices

About Powershell Scripts

Powershell provides highly scalable management utilities for managing bulk data and code deployment in single and simultaneous multiple server sessions.

To access the principle Powershell portal, see

To access the library, see

For security reasons, scripts are often “remote signed” which means that unless the author is “trusted”, you can review scripts in notepad, but the scripts cannot be executed. This is a security feature to prevent unwanted code being accidentally executed on machines. One way to make a script usable is to use the <unblock-file -verbose> command in Powershell 3.0 and higher to unlock scripts. Be sure to check code before adopting.

For help with scripting problems, visit the Powershell Community at:

Exchange Email – mobile device management

From Sept 25th, ComStat is providing management services for users and organisations who need help managing business information on mobile devices like laptops, tablets, and mobile phones.

While users increasingly connect to organizational data using multiple devices, the pace for keeping up with the protection of sensitive business and personal information has fallen behind that curve. Losing a mobile phone is one thing. Loss or theft of a mobile phone which holds business data is a potentially serious issue, and one which can put entities in breach of data protection laws.

exchange mdm

ComStat’s mobile device management services enable us to manage an organisation’s mobile “fleet” in a number of ways:

1. Controlling access to services by equipment brand, or model, or user
2. Implementing selective or global PIN access to mobile devices
3. Temporary restrictions to services from mobile devices
4. Wiping all information associated with user accounts.

For instance, if Alex loses a mobile phone in Frankfurt, he can probably get the SIM stopped rapidly. However, without management tools of some kind in place, whoever has custody of the phone has potential access to everything on Alex’ desktop at work. On notofication of loss, ComStat engineers can invoke any of the techniques above to restrict or stop all services associated with Alex’ account instantly.

The issue of “mobile” data protection is important for another reason. Entities who give you or your organisation access to their personal data expect a duty of care requiring the “custodian” to use the data for the purposes it wa given and to protect it. In cases where mobile devices are lost, information which at law belongs to your customers and which falls into someone else’s hands may leave you or your organisation with reputational and potentially legal liability.

Please contact us for more information about data loss protection and mobile device management services.

Domain names and zone records explained

Increasingly, small business users need their domain names to handle web and email services which are catered for by different providers. Without the knowledge to leverage their domain name records, users often default their email to free services like “Live” and “GMail” so that web designers can at least manage their website. These kinds of services while fine for residential use do not provide the reliability, resilience, and efficacy provided by professional solutions like Office 365. For instance, users frequently find that Yahoo, Live, and Gmail treat incoming email from a web site contact form as spam, and users unknowingly lose important communications.

So, how do domain names work, and how can domains be put to work to manage business’ needs for web sites, email, messaging services, online document management systems, etc. under one roof?


One way to think of a domain name is by comparing it to a phone book, where the domain name is the title of a phone book which lists a variety of entries that point to addresses. In the same way that phone books help us find phone numbers for people or organisations, a domain name lists records which computers need to connect to web sites, email servers, and other things. Domain names hold this list in a “zone record”. Once a domain name and its “authoritative” record is established, copies of the zone record are distributed automatically around the Internet to make it easier for users to find and connect to that domain name’s services. If records need to be amended, then copies of the amended zone record are redistributed. This is DNS.

Zone records

Small businesses used to organise their websites and email with a single web server sourced from a retail provider. The zone record below is typical of this kind of deployment. The “www” record points to the website, and we can deduce that mail services are handled by the same server because “www” and “mail” records point to the same address (see bottom of image).

sample mx record
As email becomes more difficult to manage, small businesses are having to separate mail services from websites so that email can be handled by dedicated email providers, like Microsoft’s Office 365 Exchange email service. Another reason why domain names are becoming more difficult to handle  is because businesses are using more externally based “cloud” services like document management, instant messaging, video conferencing, etc. All of these often need customised entries in a domain name’s zone record.  So, zone records can become complex, and their scope, already beyond the ability of in-house management, is becoming much trickier to handle.

Conceptually, domain names and zone records are not difficult. Since these records exist in a real-time operational state, though, amendments which are incorrectly made can cause catastrophic disruption to email and web services. Professional guidance is recommended for dealing with these services.

Problems also arise when multiple parties need access to a domain name to manage specific services like web hosting and email. A web designer might manage a web site, while a network engineer provides Exchange Email via Office 365. Domain name registrars only recognise one administrator for managing domain name owners’ services. So, who gets the key? Web designers know what kind of records they need and are not too concerned about other services, for example.

DNS Management

To deal with these unusual problems, ComStat uniquely provides specialist services not just for its own customers but also for third party engineers who need access to customers’ zone records for their project work via web based access to a centralised management control panel. ComStat’s service enables customers to prevent their domain name portfolios from fragmenting while enabling authorised parties to collaboratively manage records. In addition to conventional records, ComStat’s zone management cPpanel, below, provides for advanced services like IP v6, SPF, SOA, and TXT records .

comstats zone record control panel

For more information about ComStat’s domain name management services, please contact Steve Galloway on +44 (07834) 461 266, or send him a message via our contact form.

Open chat
Scan the code
👋Scan the QR code or click open Chat to talk to us on WhatsApp.