New Tenant Setup
- Creating a Trial Account
- Configuring Custom Domain Name
- Update Users to allow signing in with Custom Domain
- Turn off Security Defaults
- Configure Autopilot Pre-requisites
Creating a Trial Account
Microsoft used to offer a developer account which allowed multiple licenses for testing and development. This is no longer offered so for this lab, I have created a new trial subscription which will be used for testing projects being worked on. For the activities an M365 Business Premium subscription should suffice. After visiting Microsoft 365 Business Premium | Microsoft 365 and starting a trial an account is ready to go. Note this account will require domain.onmicrosoft.com to sign in the first time as well as MFA to be configured.
Understanding Microsoft 365 licenses is not a simple task but the Microsoft 365 Business Premium license includes the following components:
- Office 365 E3 (O365 E3) - Office Applications, DLP, Exchange Online, Graph Connector, Teams, OneDrive, SharePoint, etc.
- Enterprise Mobility & Security E3 (EMS E3) - Intune Plan 1 + Entra ID Plan 1
- Windows Professional
A very useful site I often use to decipher M365 subscription is Microsoft 365 Business Premium | M365 Maps which covers all of the components included in these pieces. For more detailed comparisons they offer the matrix that compares all of the features across the most common subscriptions Feature Matrix | M365 Maps.
Configuring Custom Domain Name
Like with most things, there are multiple ways this can be done. I am most familiar with setting this up from the Microsoft Admin Center but it can also be done from within the Entra ID Blade.
To do it from the Admin Center:
To add the domain from the Entra Admin Center:
Update Users to allow signing in with Custom Domain
Any users created prior to adding the custom domain and setting it as the default will have a domain.onmicrosoft.com user principal name (UPN). While this works for signing in and receiving mail does not look great. The custom domain adds a more professional look and will be easier for anyone logging in or emailing users to work. Like most things there are multiple ways this can be achieved.
Microsoft 365 Admin Center:
Entra ID Portal:
Azure Portal:
Turn off Security Defaults
Newly created tenants have a set of default security settings in place to help protect smaller organizations who may not be experienced in configuring necessary protections for Microsoft 365. However, with these defaults configured a number of the security settings are also disabled. These defaults require all users to register with multi-factor authentications (MFA), enforces MFA for those with administrative roles, MFA required for other users when needed, blocking legacy authentication protocols, and protections for some admin portals. If the defaults are left enabled, conditional access rules can't be enabled so these will need to be disabled if desired. More details can be found at Providing a default level of security in Microsoft Entra ID - Microsoft Entra | Microsoft Learn.
- To disable the security defaults, navigate to https://portal.azure.com.
- Go to the Microsoft Entra ID blade.
- Expand Manage > Properties.
- At the bottom of the page select "Manage security defaults".
- Select Disabled from the dropdown. Microsoft warns that MFA and security are important and requires a justification for disabling the defaults. In this case, we want to leverage Conditional Access Policies.
-
Save the changes and confirm again you really want to disable the defaults.
- If you selected the option to replace security defaults with Conditional Access policies, 4 rules will be created and enabled out of the box. These can't be deleted but can be turned off if replaced with similar rules.
- Block legacy authentication
- Multifactor authentication for Azure Management
- Multifactor authentication for admins
- Multifactor authentication for all users
Configure Autopilot Pre-requisites
As this tenant is going to be used to test Autopilot scenarios there are a few pre-requisites needed as documented in Windows Autopilot requirements | Microsoft Learn. In particular in a fairly open network without several controls, the configuration section is where most of the preparation work will be needed.
Configure Microsoft Entra automatic enrollment
The first piece is to allow devices to be automatically enrolled in Intune. This is done through the Entra portal.
Step up from Windows Pro to Enterprise
Windows subscription activation | Microsoft Learn
Configure Microsoft Entra Custom Branding
Add company branding to your organization's sign-in page - Microsoft Entra | Microsoft Learn
Device Registration
For the Windows 11 systems that will be utilized to be enrolled and eligible for Autopilot, a hardware hash will need to be updated. There are a few ways that this can be done documented in Configure Windows Autopilot profiles | Microsoft Learn, I will be using a script published by Microsoft to upload the hashes directly to Intune. The article below has the following code snippet that can be used:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo -Force
Get-WindowsAutopilotInfo -Online
The first time this is executed on a device some prompts are needed to install the necessary components for NuGet and the script as well as a one-time registration to grant admin consent. This does also include the WindowsAutopilotIntune module.
After consenting on behalf of the organization, an Enterprise Registration with the required permissions.
Once the script completes you can see the Serial number, make, and model of the device in Windows Autopilot devices - Microsoft Intune admin center. Additional details can be found here: Windows Autopilot user-driven Microsoft Entra join - Step 3 of 8 - Register devices as Windows Autopilot devices | Microsoft Learn