Lab 02: Manage and maintain devices

Lab scenario

You are Jordan Chen, Modern Endpoint Administrator at Contoso Healthcare. With devices now enrolled in Intune (from Lab 01), you need to implement device configuration profiles, compliance policies, and Windows Update management. You’ll also analyze existing Group Policy Objects for migration to Intune, enable Endpoint analytics for proactive monitoring, and deploy remediation scripts to maintain device health.

By the end of this lab, you’ll have:

  • Created configuration profiles using Settings Catalog and templates
  • Applied the Pharmacy scope tag (from Lab 01 Exercise 2 Task 6) to configuration, compliance, and update policies
  • Built compound assignment filters using both include and exclude modes
  • Intentionally created conflicting configuration profiles and resolved the conflict with Per-setting status
  • Configured compliance policies with grace-period actions for noncompliance
  • Created a Conditional Access policy that requires compliant devices (Report-only mode)
  • Analyzed Group Policy Objects for migration readiness using Group Policy analytics
  • Configured update rings, a Feature update profile, and an Expedited Quality update policy
  • Enabled Endpoint analytics and reviewed device performance insights
  • Deployed a remediation script
  • Used the Troubleshooting blade to investigate device status, diagnose policy conflicts, and inspect Conditional Access impact

Lab Duration

Estimated Time: 100 minutes


Instructions

Before you begin

This lab requires:

  • Completion of Lab 01 (devices enrolled, groups configured)
  • Access to the Contoso Microsoft 365 tenant (<TenantPrefix>.onmicrosoft.com)
  • Global Administrator or Intune Administrator credentials
  • SEA-DEV1 (enrolled device, Megan Bowen signed in)
  • SEA-DEV2 (enrolled device, Joni Sherman signed in)
  • Group Policy backup XML files (provided in lab assets)

[!IMPORTANT] Current Intune navigation uses Devices > Manage devices for configuration, compliance, scripts, and Group Policy analytics. Use Devices > By platform > Windows for Windows updates, and Tenant administration > Assignment filters for assignment filters.


Exercise 1: Create configuration profiles

Scenario

Configuration profiles allow you to manage device settings at scale. You’ll create profiles using the Settings Catalog (granular per-setting control) and built-in templates (pre-configured setting bundles).

Task 1: Create a Settings Catalog profile

The Settings Catalog provides access to thousands of individual settings across Windows, macOS, iOS, and Android.

  1. If necessary, sign in to SEA-DEV1 as Megan:
    • User: MeganB@<TenantPrefix>.OnMicrosoft.com
    • Password: (Megan Bowen’s password) (use the pre-provided <UserPassword>)
  2. On SEA-DEV1, open Microsoft Edge and navigate to https://intune.microsoft.com.

  3. Sign in as **admin@.onmicrosoft.com**.

  4. In the Microsoft Intune admin center, select Devices, then under Manage devices select Configuration.

  5. Select Create → New Policy.

  6. In the Create a profile pane, configure:
    • Platform: Windows 10 and later
    • Profile type: Settings catalog
  7. Select Create.

  8. On the Basics tab, enter:
    • Name: Config - Power Settings
    • Description: Manages power plan and display timeout settings for corporate devices
  9. Select Next.

  10. On the Configuration settings tab, select + Add settings.

  11. In the settings picker, search for power.

  12. Expand Power and check the following settings:
    • Unattended Sleep Timeout Plugged In
    • Unattended Sleep Timeout On Battery
  13. Select Close to return to the configuration settings page.

  14. Configure the settings:
    • Unattended Sleep Timeout Plugged In: 0 (0 seconds = never sleep unattended)
    • Unattended Sleep Timeout On Battery: 1800 (seconds = 30 minutes)
  15. Select Next.

  16. On the Scope tags tab, select + Select scope tags, add the Pharmacy scope tag (created in Lab 01 Exercise 2 Task 6), and select Select. Then select Next.

    [!IMPORTANT] Leave the Default scope tag selected when you add Pharmacy. The policy still applies to every Windows device.

  17. On the Assignments tab, under Included groups, select Add groups.

  18. Search for and select dyn-Windows-Devices.

  19. Select Select.

  20. Select Next.

  21. On the Review + create tab, review the settings and select Create.

You have successfully created a Settings Catalog configuration profile.


Task 2: Create a Device Restrictions profile using a template

Templates provide pre-configured bundles of settings for common scenarios.

  1. In the Microsoft Intune admin center, on the Configuration page, select Create → New Policy.

  2. In the Create a profile pane, configure:
    • Platform: Windows 10 and later
    • Profile type: Templates → Device restrictions
  3. Select Create.

  4. On the Basics tab, enter:
    • Name: Config - Device Restrictions
    • Description: Restricts Windows features and user capabilities on corporate devices
  5. Select Next.

  6. On the Configuration settings tab, expand General and configure:
    • Screen capture (mobile only): Block
    • Copy and paste (mobile only): Not configured
    • Manual unenrollment: Block
  7. Expand Password and configure:
    • Password: Require
    • Required password type: Alphanumeric
    • Password complexity: Numbers, lowercase, uppercase and special characters required
    • Minimum password length: 8
    • Number of sign-in failures before wiping device: 10
  8. Expand Microsoft Defender Antivirus and configure:
    • Real-time monitoring: Enable
    • Behavior monitoring: Enable
  9. Select Next.

  10. On the Scope tags tab, select + Select scope tags, add Pharmacy, and select Select. Then select Next.

  11. On the Assignments tab, under Included groups, select Add groups.

  12. Search for and select sg-Intune-Pilot-Users.

  13. Select Select.

  14. Select Next.

  15. On the Applicability Rules tab, select Next.

  16. On the Review + create tab, select Create.

You have successfully created a Device Restrictions profile.


Task 3: Create compound assignment filters (include and exclude modes)

Assignment filters refine policy targeting based on device properties without forcing you to create new groups. Upper-intermediate use of filters means combining multiple properties in one filter (compound rule) and using include vs. exclude mode on the same policy to layer in and out. You’ll create two filters: one compound include filter, and one simple exclude filter that you’ll re-use in Task 4.

Filter 1 — compound include filter (corporate Microsoft devices, no kiosks)

  1. In the Microsoft Intune admin center, in the left navigation, select Tenant administration, then select Assignment filters.

  2. Select Create → Managed devices.

  3. On the Basics tab, enter:
    • Name: Filter - Microsoft corporate, no kiosks
    • Description: Compound rule: Microsoft-manufactured corporate devices that are not categorized as Kiosk
    • Platform: Windows 10 and later
  4. Select Next.

  5. On the Rules tab, switch to the rule syntax editor (select Edit), then enter:

    (device.manufacturer -eq "Microsoft") -and (device.deviceCategory -ne "Kiosk")
    
  6. Select OK to save the rule.

  7. Select Next and skip the Scope Tags tab.

  8. On the Review + create tab, select Create.

Filter 2 — simple exclude filter (SEA-DEV1)

  1. On the Assignment filters page, select Create → Managed devices.

  2. On the Basics tab, enter:
    • Name: Filter - SEA-DEV1 Exclude
    • Description: Excludes device SEA-DEV1 from policy assignments
    • Platform: Windows 10 and later
  3. Select Next.

  4. On the Rules tab, configure:
    • Property: Device name
    • Operator: Equals
    • Value: SEA-DEV1
  5. Select Next and skip the Scope Tags tab.

  6. On the Review + create tab, select Create.

You have successfully created compound and simple assignment filters.


Task 4: Apply the assignment filter to a profile

You’ll modify the Device Restrictions profile to exclude SEA-DEV1 using the filter you created in Task 3.

  1. In the Microsoft Intune admin center, navigate to Devices → Manage devices → Configuration.

  2. Select Config - Device Restrictions from the list.

  3. Scroll down until you see Properties.

  4. In the Assignments section, select Edit.

  5. Under the sg-Intune-Pilot-Users group assignment, select Edit filter, and then select Exclude filtered devices in assignment.

  6. Choose Filter - SEA-DEV1 Exclude and select Select.

  7. Select Review + save → Save.

You have successfully applied an assignment filter to a configuration profile.


Task 5: Create two intentionally conflicting profiles for the pilot cohort

Real Intune environments accumulate overlapping policies as different admins author them over time. Two profiles targeting the same setting on the same group produce a conflict that surfaces in the Per-setting status view. You’ll deliberately set up that situation now so you can diagnose and resolve it in Exercise 6 Task 2.

You’ll create two Settings Catalog profiles for the pilot cohort that disagree on a single setting: Allow camera. (Why camera? Pharmacy clinical areas have HIPAA-driven restrictions on cameras near patient records, but the broader pilot cohort has admin assistants who need cameras for Teams meetings. Two well-meaning admins might author opposite policies for the same group.)

Profile 1 — WIN - Camera - Enabled (Pilot)

  1. In the Microsoft Intune admin center, on the Configuration page, select Create → New Policy.

  2. In the Create a profile pane, configure:
    • Platform: Windows 10 and later
    • Profile type: Settings catalog
  3. Select Create.

  4. On the Basics tab, enter:
    • Name: WIN - Camera - Enabled (Pilot)
    • Description: Allow camera use on pilot devices (Teams meetings)
  5. Select Next.

  6. On the Configuration settings tab, select + Add settings.

  7. In the settings picker, search for camera. Expand Camera (or Devices > Camera, depending on portal build) and check the Allow Camera setting. Close the picker.

  8. Set Allow Camera to Allowed.

  9. Select Next.

  10. On the Scope tags tab, add Pharmacy and select Next.

  11. On the Assignments tab, under Included groups, select Add groups, search for and select sg-Intune-Pilot-Users, then Select. Select Next.

  12. On the Review + create page, select Create.

Profile 2 — WIN - Camera - Disabled (Pilot) (the conflicting twin)

  1. On the Configuration page, select Create → New Policy.

  2. Platform: Windows 10 and later. Profile type: Settings catalog. Select Create.

  3. On the Basics page, enter:
    • Name: WIN - Camera - Disabled (Pilot)
    • Description: Block camera on pilot devices (Pharmacy clinical areas — HIPAA)
  4. Select Next.

  5. On the Configuration settings tab, select + Add settings, search for camera, expand Camera (or Devices > Camera, depending on portal build) and check Allow Camera, close the picker.

  6. Set Allow Camera to Not allowed.

  7. Select Next.

  8. On the Scope tags tab, select + Select scope tags, add Pharmacy, and select Select. Then select Next.

  9. On the Assignments tab, assign to sg-Intune-Pilot-Users (same group). Select Next.

  10. On the Review + create tab, select Create.

[!IMPORTANT] You created two profiles that conflict on Allow Camera for sg-Intune-Pilot-Users. Don’t fix the conflict until Exercise 6 Task 2.

You have successfully created two intentionally conflicting configuration profiles for the pilot cohort.


Exercise 2: Configure compliance policies

Scenario

Compliance policies define security and health requirements for devices. Non-compliant devices can be marked as such in Microsoft Entra ID, triggering Conditional Access policies to block access to corporate resources.

Task 1: Create a compliance notification message template

The Send email to end user noncompliance action needs a message template to send. There’s no built-in Default template — you have to create one before you can select it in Task 2.

  1. In the Microsoft Intune admin center, select Devices, then under Manage devices select Compliance.

  2. Select the Notifications tab.

  3. Select + Create notification.

  4. On the Basics tab, enter:
    • Name: Default
  5. Select Next.

  6. On the Header and footer settings tab, configure:
    • Leave Show company logo, Show contact information, and Show company portal website link at their defaults.
  7. Select Next.

  8. On the Notification message templates tab, select Add and configure:
    • Locale: English (United States)
    • Subject: Your device needs attention
    • Message: Your device is out of compliance with Contoso's security policy. Please contact the Service Desk or take the recommended action in the Company Portal app to restore access.
    • Toggle Set to default locale
  9. Select Save and select Next.

  10. Select Next and skip Scope tags.

  11. On the Review + create tab, select Create.

You have successfully created a compliance notification message template.


Task 2: Create a Windows compliance policy

  1. In the Microsoft Intune admin center, select Devices, then under Manage devices select Compliance.

  2. Select the Policies tab, and then select Create policy.

  3. In the Create a policy pane, configure:
    • Platform: Windows 10 and later
    • Profile type: Windows 10/11 compliance policy
  4. Select Create.

  5. On the Basics tab, enter:
    • Name: Compliance - Windows Security Baseline
    • Description: Requires BitLocker encryption, antivirus, firewall, and secure boot
  6. Select Next.

  7. On the Compliance settings tab, expand Device Health and configure:
    • BitLocker: Require
    • Secure Boot: Require
    • Code integrity: Require
  8. Expand Device Properties and configure:
    • Minimum OS version: 10.0.19045 (Windows 10 22H2)
  9. Expand System Security and configure:
    • Require a password to unlock mobile devices: Require
    • Simple passwords: Block
    • Password type: Alphanumeric
    • Password Complexity: Require digits, lowercase, uppercase, and special characters
    • Minimum password length: 8
    • Require encryption of data storage on device: Require
    • Firewall: Require
    • Antivirus: Require
    • Antispyware: Require
    • Microsoft Defender Antimalware: Require
    • Microsoft Defender Antimalware minimum version: Leave blank (any version)
    • Microsoft Defender Antimalware security intelligence up-to-date: Require
    • Real-time protection: Require
  10. Select Next.

  11. On the Actions for noncompliance tab, configure the default action:
    • Mark device noncompliant: 7 days
  12. In the next action row, configure another action:
    • Action: Send email to end user
    • Schedule (days after noncompliance): 1
    • Message template: Select Default
    • Additional recipients: Leave blank

    [!NOTE] If Default isn’t available, go to the Notifications tab and select + Create notification before you configure this action.

  13. Select Next and on the Scope tags tab, add Pharmacy and select Next.

  14. On the Assignments page, under Included groups, select Add groups.

  15. Search for and select dyn-Windows-Devices.

  16. Select Select and then select Next.

  17. On the Review + create page, select Create.

You have successfully created a Windows compliance policy with grace periods and notification actions.


Task 3: Monitor compliance policy results

  1. In the Microsoft Intune admin center, navigate to Devices → Monitor, then select Noncompliant devices.

  2. Review the Noncompliant devices report. It lists every device that has failed at least one compliance policy, with columns for:
    • Device name
    • Primary UPN
    • Compliance status
    • Platform
    • OS version
    • Organization
    • Last check-in
    • Management agent

    [!NOTE] In a new lab environment, this report can show 0 items. Select Refresh to reload the data.

  3. Navigate to Devices → All devices.

  4. Select SEA-DEV1 from the device list.

  5. In the Essentials section, below the device name SEA-DEV1 review the following:
    • Compliance: May show “Not evaluated,” “Compliant”, “In grace period”, or “Not compliant”
    • Last check-in: Timestamp of last sync with Intune

    [!NOTE] Compliance evaluation can take 5–10 minutes after policy assignment. If the status shows Not evaluated, select Sync, wait a few minutes, and refresh the page.

  6. If the device shows non-compliant, in the device blade’s left navigation, under Monitor, select Device compliance to view which settings failed.

You have successfully monitored compliance policy results.


Task 4: Create a Conditional Access policy that requires device compliance (Report-only)

A compliance policy on its own doesn’t block anything — it just marks devices as compliant or noncompliant. The teeth come from a Conditional Access (CA) policy that requires the Marked as compliant state for access to corporate resources. You’ll create that CA policy now in Report-only mode, which logs what the policy would do without enforcing it. You’ll observe its impact in this lab and rehearse enforcement in Lab 04 Exercise 6.

  1. Open a new browser tab and navigate to https://entra.microsoft.com (Microsoft Entra admin center). Sign in as **admin@.onmicrosoft.com** if prompted.

  2. In the left navigation, under Entra ID, select Conditional Access.

  3. On the left navigation, select Policies, then select + New policy.

  4. On the New policy page, configure:
    • Name: CA - Require compliant device (Pharmacy pilot)
  5. Under Assignments → Users, select 0 users and groups selected:
    • On the Include tab, select Select users and groups → check Users and groups → select sg-Intune-Pilot-Users → Select.
    • On the Exclude tab, select Users and groups → select **admin@.onmicrosoft.com** (or whichever account you signed in with) → **Select**.

    [!WARNING] Exclude at least one Global Administrator before this policy is turned on to avoid locking yourself out. Report-only mode doesn’t enforce the policy.

  6. Under Assignments → Target resources, select No target resources selected:
    • Select what this policy applies to: Resources (formerly “All cloud apps”)
    • Include: All resources (formerly “All cloud apps”)
    • Acknowledge the warning about including all apps.
  7. Under Assignments → Conditions, select 0 conditions selected → Client apps → Not configured → Configure: Yes → leave all client app types selected → Done.

  8. Under Access controls → Grant, select 0 controls selected:
    • Select Grant access.
    • Check Require device to be marked as compliant.
    • Leave For multiple controls at Require all the selected controls.
    • Select Select.
  9. Under Enable policy, select Report-only.

  10. If you’re prompted about device platforms, keep the default Exclude device platforms macOS, iOS, Android, and Linux from this policy option. This lab targets Windows devices only.

  11. Select Create.

You have successfully created a Conditional Access policy that requires device compliance (Report-only mode).


Exercise 3: Analyze Group Policy Objects

Scenario

Contoso has existing Group Policy Objects (GPOs) from an on-premises Active Directory environment. You’ll use Group Policy analytics to identify which GPO settings are supported in Intune and generate a migration report.

Task 1: Import a Group Policy backup

  1. On SEA-DEV1, open an elevated Terminal (Admin) window (right-click Start → Terminal (Admin); Windows Terminal opens a PowerShell tab by default), and copy the GPO backup file from the AllFiles (F:) drive into C:\LabAssets\GPO-Backups\:

    $dest = "C:\LabAssets\GPO-Backups"
    New-Item -Path $dest -ItemType Directory -Force | Out-Null
    Copy-Item -Path "F:\GPO_Desktop_Settings.xml" -Destination $dest
    

    [!NOTE] If you aren’t using the hosted lab environment, download GPO_Desktop_Settings.xml and save it to C:\LabAssets\GPO-Backups\.

  2. In the Microsoft Intune admin center, select Devices, then under Manage devices select Group Policy analytics.

  3. Select Import from the top toolbar.

  4. In the GPO file upload tab, select Select a file, then browse and navigate to C:\LabAssets\GPO-Backups\.

  5. Select GPO_Desktop_Settings.xml and select Open.

  6. Select Next.

  7. On the Scope tags page, leave the Default scope tag (don’t add Pharmacy here — this GPO analysis isn’t part of the Pharmacy Helpdesk delegation thread used later in Lab 05). Select Next.

  8. On the Review + create tab, select Create.

  9. Wait for the import to complete (typically 1–2 minutes).

  10. After import, the GPO appears in the list. The MDM support column shows how many settings are supported, and the aggregated Group policy migration readiness bars at the top of the page summarize Ready for migration, Not supported, and Deprecated counts.

You have successfully imported a Group Policy backup into Group Policy analytics.


Task 2: Review the migration readiness report and migrate supported settings

  1. On the Group Policy analytics page, select the 25% in the MDM Support column in the list.

  2. The Settings tab opens to a table with one row per setting. Review the columns:
    • Setting name and Group policy setting category
    • MDM support — a green Yes or amber No icon (not a clickable drill-down; the row itself carries no extra detail beyond these columns)
    • Value, Scope (User/Device), Min OS version, CSP name, and CSP mapping (the OMA-URI, shown only for Yes rows)

    [!NOTE] There’s no per-setting detail panel. For GPO_Desktop_Settings, use only the two settings that show Yes.

  3. Select Back to return to the Group Policy analytics list.

  4. Select the checkbox next to GPO_Desktop_Settings, then select Migrate from the toolbar.

  5. On the Settings to migrate tab, select the Migrate checkbox for the two supported settings only:
    • Remove Run menu from Start Menu
    • Prevent changes to Taskbar and Start Menu Settings

    Select Next.

  6. On the Configuration tab, review the imported values (carried over from the GPO), then select Next.

  7. On the Profile info tab, enter:
    • Name: Migrated - GPO Desktop Settings
    • Description: Settings Catalog profile migrated from the on-premises GPO_Desktop_Settings GPO
  8. Select Next.

  9. On the Scope tags tab, select + Select scope tags, add Pharmacy, and select Select. Then select Next.

  10. On the Assignments tab, under Included groups, select Add groups, search for and select dyn-Windows-Devices, then select Select and Next.

  11. On the Review + deploy page, review the settings and select Deploy.

You have successfully reviewed a Group Policy migration readiness report and migrated the supported settings to a new Settings Catalog profile.


Task 3: Export the analysis results

  1. On the Group Policy analytics list page, select the 25% link in the MDM support column for GPO_Desktop_Settings.

  2. Select Export from the top toolbar.

  3. In the confirmation pane, select Yes.

  4. The CSV file downloads automatically to the Downloads folder with a timestamped file name.

  5. Open the CSV file in Excel or Notepad to review the exported data.

    The CSV contains:

    • Setting name
    • Group policy setting category
    • MDM support
    • Value
    • Scope
    • Minimum OS version
    • CSP name
    • CSP mapping

You have successfully exported Group Policy analysis results.


Exercise 4: Configure Windows Update management

Scenario

You’ll use Windows Update for Business policies (Update rings) to control when devices receive feature and quality updates. You’ll create multiple rings for phased rollouts (pilot, standard, and conservative).

Task 1: Create a pilot update ring

  1. In the Microsoft Intune admin center, select Devices, under By platform select Windows, then on the Windows blade select Windows updates.

    [!NOTE] The page opens on Releases. If Hotpatch Enablement or Windows 10 reached end of support on October 14, 2025 banners appear, leave them unchanged.

  2. Select the Update rings tab.

  3. Select + Create profile.

  4. On the Basics tab, enter:
    • Name: Update Ring - Pilot
    • Description: Pilot ring for early adopters—receives updates immediately
  5. Select Next.

  6. On the Update ring settings tab, configure:
    • Microsoft product updates: Allow
    • Windows drivers: Allow
    • Quality update deferral period (days): 0
    • Feature update deferral period (days): 0
    • Set feature update uninstall period (2–60 days): 30
  7. Under User experience settings:
    • Automatic update behavior: Auto install and restart at maintenance time
    • Active hours start: 8 AM
    • Active hours end: 5 PM
    • Option to pause updates: Disable
    • Option to check for Windows updates: Enable
  8. Select Next.

  9. On the Scope tags tab, add Pharmacy and select Next.

  10. On the Assignments tab, under Included groups, select Add groups.

  11. Search for and select sg-Intune-Pilot-Users.

  12. Select Select.

  13. Select Next.

  14. On the Review + create tab, select Create.

You have successfully created a pilot update ring.


Task 2: Create a standard update ring

  1. On the Update rings tab, select + Create profile.

  2. On the Basics page, enter:
    • Name: Update Ring - Standard
    • Description: Standard ring for general users—defers updates by 7 days
  3. Select Next.

  4. On the Update ring settings tab, configure:
    • Quality update deferral period (days): 7
    • Feature update deferral period (days): 14
    • Automatic update behavior: Auto install and restart at maintenance time
    • Active hours start: 8 AM
    • Active hours end: 5 PM
    • Option to pause updates: Enable (allows users to pause updates for up to 7 days)
  5. Select Next.

  6. On the Scope tags tab, select Next.

  7. On the Assignments tab, under Included groups, select Add groups.

  8. Search for and select dyn-Windows-Devices.

  9. Select Select.

  10. Don’t add an excluded group for this lab. The included group is a device group, and Intune doesn’t support excluding a user group from a device-group assignment.

  11. Select Next.

  12. On the Review + create tab, select Create.

You have successfully created a standard update ring with deferrals.


Task 3: Monitor Windows Update deployment status

The pilot cohort (sg-Intune-Pilot-Users, created in Lab 01 Exercise 1) is the same group that received the blocking ESP in Lab 01 Exercise 4 and the pilot configuration profile in this lab’s Exercise 1. That single cohort threads through every rollout in this lab series — update rings here, ASR rules in Lab 04, remediation rollout in Lab 05, EPM in Lab 06. Watching one consistent pilot cohort across rings is what makes phased rollouts work in production.

  1. In the Microsoft Intune admin center, navigate to Reports → Windows updates.

    The page header reads **Reports Windows updates** and opens to the Summary tab, which shows two aggregated reports: Windows Feature updates and Windows Expedited Quality updates. A second Reports tab on the same page lists the detailed drill-in reports.
  2. On the Summary tab, in the Windows Feature updates section, select Generate report.

  3. Review the report data:
    • Policy
    • Versions
    • In progress
    • Success
    • Error
    • Rollback initiated or completed
    • Cancelled
    • On hold
  4. Navigate to Devices → Windows → Select Windows updates.

  5. Review the available Windows Update reports and policies, including Update rings and Feature updates.

  6. Return to Devices > All devices and select SEA-DEV1.

  7. On the Overview page, review the device’s Last check-in time and compliance status.

You have successfully monitored Windows Update deployment status.


Task 4: Create a Feature update profile

Update rings control when updates install. Feature update profiles control which version of Windows devices are pinned to — a separate axis. You’ll create a Feature update profile that pins the broader fleet to Windows 11 25H2.

  1. In the Microsoft Intune admin center, select Devices, under By platform select Windows, then on the Windows blade select Windows updates, then select Feature updates tab.

  2. Select + Create > Create feature update policy.

  3. On the Deployment settings tab, configure:
    • Name: Feature Update - Win11 25H2
    • Description: Pin Contoso fleet to Windows 11 25H2
    • Feature update to deploy: Windows 11, version 25H2
    • Check Make available to users as a required update
  4. Select Next.

  5. On the Scope tags tab, leave the Default scope tag (this profile is tenant-wide). Select Next.

  6. On the Assignments tab, assign to dyn-Windows-Devices. Don’t add an excluded group for this lab. The included group is a device group, and Intune doesn’t support excluding a user group from a device-group assignment.

  7. Select Next.

  8. On the Review + create tab, select Create.

You have successfully created a Windows feature update policy.


Task 5: Create an Expedited Quality update policy

Expedited Quality updates push out-of-band security patches faster than the normal deferral window. They’re the right answer for an active zero-day. You’ll create a policy that installs the latest critical security patch within 2 days, overriding any deferral the regular Update ring would apply.

  1. In Windows → Windows updates, select the Quality updates tab.

  2. Select + Create > Expedite policy.

  3. On the Settings tab, configure:
    • Name: Quality Update - Expedited critical patches
    • Description: Push out-of-band security patches within 2 days, overriding ring deferrals
    • Select the quality update you would like to Expedite - choose the latest update available.
    • If a reboot is required, select the number of days before it’s enforced: 2 days
  4. Select Next.

  5. On the Scope tags tab, leave Default. Select Next.

  6. On the Assignments tab, assign to dyn-Windows-Devices (no exclusions — expedited security updates apply to everyone, including pilot).

  7. Select Next.

  8. On the Review + create tab, select Create.

You have successfully created an Expedited Quality update policy.


Exercise 5: Enable Endpoint analytics and remediations

Scenario

Endpoint analytics provides insights into device performance, startup times, and user experience. Remediations automatically detect and fix common issues before users report problems.

Task 1: Enable Endpoint analytics

  1. In the Microsoft Intune admin center, select Reports, expand the Analytics group, and select Endpoint analytics.

  2. The first time you visit Endpoint analytics in a tenant, you land on the **Endpoint analytics Introduction** page. Leave Collect device data from set to All cloud-managed devices and select Start to enable data collection.

    [!NOTE] If Start doesn’t appear, data collection is already enabled. Go to the next step.

  3. Select Settings in the left navigation.

  4. Review the Intune data collection policy section.

  5. Return to the **Endpoint analytics Overview** page.

    [!NOTE] Endpoint analytics needs 24–48 hours of device telemetry before it shows meaningful insights. In a new lab environment, expect limited dashboard data.

  6. In the left navigation, expand the Reports group and review the available reports:
    • Startup performance: Boot times and logon durations
    • Application reliability: App crashes and hangs
    • Work from anywhere: Cloud connectivity and recommended actions
    • Resource performance: CPU and memory utilization
    • Battery health: Battery condition and runtime

You have successfully enabled Endpoint analytics.


Task 2: Enable Windows license verification

Remediations require Windows license verification to be enabled at the tenant level before you can create or run a script package. You’ll enable it now, before building the remediation in Task 3.

  1. In the Microsoft Intune admin center, select Tenant administration, then select Connectors and tokens.

  2. Select Windows data.

  3. Under Windows license verification, turn on I confirm that my tenant owns one of these licenses.

    [!IMPORTANT] You need Global Administrator or Intune Service Administrator permissions and a qualifying Windows or Microsoft 365 license. Without the license, you can create the package in Task 3, but it won’t execute on devices.

  4. Select Save if you made any changes.

You have successfully enabled Windows license verification.


Task 3: Create a remediation script package

Remediations run PowerShell scripts on devices to detect and fix issues automatically.

  1. In the Microsoft Intune admin center, select Devices, then under Manage devices select Scripts and remediations.

  2. Select the Remediations tab (the page opens on this tab by default).

  3. Select + Create.

  4. On the Basics tab, enter:
    • Name: Remediation - Clear Temp Files
    • Description: Detects and clears temporary files older than 30 days
  5. Select Next.

  6. On the Settings page, configure:
    • Detection script file: Select Select a file, go to the AllFiles (F:) drive, and select Detect-TempFiles.ps1.
    • Remediation script file: Select Select a file, go to the AllFiles (F:) drive, and select Remediate-TempFiles.ps1.

      [!NOTE] If you aren’t using the hosted lab environment, download Detect-TempFiles.ps1 and Remediate-TempFiles.ps1, and then select them from your Downloads folder.

    • Run this script using the logged-on credentials: No (run as SYSTEM)
    • Enforce script signature check: No
    • Run script in 64-bit PowerShell: Yes
  7. Select Next, add the Pharmacy scope tag and select Next.

  8. On the Assignments tab, under Included groups, select + Select groups to include.

  9. Search for and select dyn-Windows-Devices.

  10. Select Select.

  11. Select Next.

  12. On the Review + create tab, select Create.

You have successfully created a remediation script package.


Task 4: Monitor remediation execution

  1. In the Microsoft Intune admin center, on the Remediations tab, select Remediation - Clear Temp Files from the list.

  2. Select the Device status tab.

  3. Review the device execution results:

    • Detection status: Shows whether the issue was detected
    • Remediation status: Shows whether the remediation succeeded or failed
    • Last check-in: Timestamp of last script execution

    [!NOTE] Remediations run on a schedule. After initial deployment, wait 1–2 hours for the first execution, then check the results.

You have successfully monitored remediation execution.


Exercise 6: Use the Troubleshooting blade

Scenario

The Troubleshooting blade provides a consolidated view of a user’s devices, policies, app installations, and enrollment status. You’ll use it to investigate device compliance and policy assignment.

Task 1: Investigate a user’s device status

  1. In the Microsoft Intune admin center, select Troubleshooting + support and select Troubleshoot.

  2. In the User field (placeholder text “Search by display name or email”), search for and select Megan Bowen.

  3. After selecting the user, the page shows a row of tabs, not scrollable sections: Summary, Devices, Groups, Policy, Applications, App protection policy, Updates, and more under the … overflow menu.

  4. Select the Devices tab.

  5. Verify a pilot-cohort device (SEA-DEV1 or SEA-DEV2) is listed for Megan Bowen.

  6. Select that device from the list to open its device blade.

  7. On the device’s Overview page, in the Essentials section, review:

    • Enrolled by
    • Last check-in time
    • Compliance
    • Primary user
    • Management name

You have successfully investigated a user’s device status.


Task 2: Diagnose and resolve a policy conflict using Per-setting status

In Exercise 1 Task 5 you intentionally created two configuration profiles — WIN - Camera - Enabled (Pilot) and WIN - Camera - Disabled (Pilot) — that conflict on the Allow Camera setting for the sg-Intune-Pilot-Users group. Now you’ll find that conflict in the portal and resolve it.

[!IMPORTANT] Conflict appears only after a pilot user is signed in on SEA-DEV1 or SEA-DEV2 and the device syncs. If you don’t see the camera profiles or Conflict, sign in to the device as a pilot user, and then sync from Settings → Accounts → Access work or school → work account → Info → Sync, wait 5–10 minutes, and select Refresh.

  1. You should still be on the device blade you opened at the end of Task 1. If not, navigate to Devices → All devices and reselect that same pilot-cohort device (SEA-DEV1 or SEA-DEV2).

  2. In the device blade’s left navigation, under Monitor, select Device configuration.

  3. Review the State column. This report lists every policy assigned to the device (Policy, Logged in user, Policy type, State) with a real per-policy status — this is a cleaner, more direct view than the Troubleshoot blade’s Policy tab, which doesn’t show status at all.

  4. Find WIN - Camera - Enabled (Pilot) and WIN - Camera - Disabled (Pilot). Both should show State: Conflict.

    [!NOTE] Other policies may also show Conflict or Error. Focus only on the two camera profiles for this task.

  5. Select WIN - Camera - Disabled (Pilot) to open the Policy Settings page.

    [!NOTE] The table shows Name, Status, and Error code for each setting. Conflict means Intune applies neither conflicting value.

  6. Find the Allow Camera row and confirm the Status column shows Conflict.

  7. Resolve the conflict. Pharmacy clinical regulations win at Contoso — cameras off in clinical areas — so you’ll keep the Disabled profile and delete the Enabled one:
    • Navigate back to Devices → Manage devices → Configuration.
    • Select WIN - Camera - Enabled (Pilot).
    • From the toolbar, select Delete, then select OK to confirm.
  8. Trigger a device sync (Devices → All devices → select the same device → Sync → Yes). Wait a few minutes for the device to check in.

  9. Return to the device’s Monitor > Device configuration report and confirm WIN - Camera - Disabled (Pilot) now shows State: Succeeded (no longer Conflict), with the Disabled value applied.

    [!NOTE] You may need another device sync and a few minutes before the policy state updates.

You have successfully diagnosed and resolved a real policy conflict using Per-setting status.


Task 3: Force a device sync from the Troubleshooting blade

  1. On the **Troubleshooting + support Troubleshoot** page (with Megan Bowen selected), in the Devices tab, select SEA-DEV1.
  2. Select Sync from the device actions toolbar, then select Yes.

  3. Wait a few minutes for the device to check in. The sync request isn’t instant; the device has to receive it and report back.

  4. Refresh the page and verify the Last check-in timestamp updated.

You have successfully forced a device sync from the Troubleshooting blade.


Task 4: Investigate compliance state and Conditional Access (Report-only) impact

The CA - Require compliant device (Pharmacy pilot) Conditional Access policy you created in Exercise 2 Task 4 is running in Report-only mode — it doesn’t enforce, but it does log what would have happened on every sign-in. You’ll inspect those logs now to see the policy’s impact. You’ll rehearse enforcing it in Lab 04 Exercise 6.

  1. On the **Troubleshooting + support Troubleshoot** page, with a pilot-cohort user selected (Megan Bowen or another sg-Intune-Pilot-Users member), observe the Compliance section.
  2. Note the user’s device compliance state. A Not compliant or Not evaluated state means the CA policy in enforcement mode would block the sign-in.

  3. Open a new browser tab to https://entra.microsoft.com → Monitoring & health → Sign-in logs.

  4. On the User sign-ins (interactive) tab, select Add filter to filter by User principal name for the same pilot user, and set the Date range filter to Last 24 hours.

  5. Select a sign-in entry where the Application column shows an actual cloud app or resource — for example Microsoft Intune admin center, Office 365, or Microsoft 365 admin portal. Avoid entries for Device Registration Service or similar system/enrollment apps.

    [!NOTE] Conditional Access doesn’t evaluate local Windows sign-ins, Windows Hello for Business, or device registration entries. If the tab shows Not applicable, choose a sign-in for an actual cloud app.

  6. Select any recent sign-in entry to open its Activity details: Sign-ins pane.

  7. Switch to the Report only tab in the details pane. You should see CA - Require compliant device (Pharmacy pilot) listed with a Result of Report-only: Success, Report-only: Failure, Report-only: Not applied, Report-only: User action required, or Not applied.

    [!NOTE] Report-only: Failure means enabling the policy would block the sign-in. Report-only: Not applied means the sign-in didn’t match the policy.

  8. Open a second sign-in entry from a user outside sg-Intune-Pilot-Users (e.g., the admin account). Confirm the CA policy shows Report-only: Not applied — because the policy is scoped only to the pilot group.

You have successfully investigated the Conditional Access policy’s report-only impact and the compliance state behind it.


Lab Summary

Congratulations! You’ve completed Lab 02: Manage and maintain devices.

In this lab, you accomplished the following:

Exercise 1: Create configuration profiles

  • Created a Settings Catalog profile for power management (tagged with Pharmacy)
  • Created a Device Restrictions profile using a built-in template (tagged with Pharmacy)
  • Created compound and simple assignment filters and applied one in exclude mode
  • Intentionally created two conflicting camera profiles for the pilot cohort (resolved in Exercise 6)

Exercise 2: Configure compliance policies

  • Created a Windows compliance policy with device health and security requirements (tagged with Pharmacy)
  • Configured grace periods and notification actions for noncompliance
  • Created a Conditional Access policy (CA - Require compliant device (Pharmacy pilot)) in Report-only mode
  • Monitored compliance policy results for enrolled devices

Exercise 3: Analyze Group Policy Objects

  • Imported a Group Policy backup XML into Group Policy analytics
  • Reviewed the migration readiness report to identify supported/unsupported settings
  • Exported the analysis results for planning

Exercise 4: Configure Windows Update management

  • Created a pilot update ring with no deferrals for early adopters (tagged with Pharmacy)
  • Created a standard update ring with 7-day quality and 14-day feature update deferrals
  • Created a Feature update profile pinning the fleet to Windows 11 25H2
  • Created an Expedited Quality update policy for out-of-band security patches
  • Monitored Windows Update deployment status across devices

Exercise 5: Enable Endpoint analytics and remediations

  • Enabled Endpoint analytics to monitor device performance and user experience
  • Enabled Windows license verification, a tenant-level prerequisite for remediations
  • Created a remediation script package to detect and clear old temp files
  • Monitored remediation execution results

Exercise 6: Use the Troubleshooting blade

  • Investigated a user’s device status and policy assignments
  • Diagnosed and resolved a real policy conflict using Per-setting status
  • Forced a device sync to retrieve new policies immediately
  • Inspected the Conditional Access policy’s Report-only impact via sign-in logs

Key Takeaways:

  • Configuration profiles can be created using Settings Catalog (granular control) or templates (pre-configured bundles)
  • Assignment filters refine policy targeting without creating additional groups
  • Compliance policies with grace periods provide users time to remediate issues before access is blocked
  • Group Policy analytics helps plan on-premises-to-cloud migration by identifying supported settings
  • Windows Update rings enable phased rollouts with deferrals for stability
  • Endpoint analytics and remediations enable proactive device management and issue resolution
  • The Troubleshooting blade consolidates device, policy, and app status for efficient troubleshooting

Next Steps: In Lab 03, you’ll deploy applications to managed devices using Microsoft Store apps, Win32 packages, Microsoft 365 Apps, and App Protection Policies.


END OF LAB