Introduction

Completed

This module shows how to automate and optimize endpoint management using Microsoft Intune together with Microsoft Graph and PowerShell. You'll learn practical automation patterns for common Intune tasks—such as creating and assigning configuration profiles, deploying apps, querying device inventory and compliance, and automating remediation and reporting—while following security and governance best practices.

What you'll learn

  • Automate Intune operations: Use Microsoft Graph and the Microsoft Graph PowerShell SDK to script common Intune tasks (policies, profiles, apps, assignments, and reports).
  • Manage devices at scale: Query inventory, filter devices, and update device properties programmatically.
  • Integrate Defender and MTD signals: Use risk and threat signals in automation to triage and remediate noncompliant or risky devices.
  • Implement secure automation: Register Entra ID applications or use delegated admin flows, apply least-privilege permissions, and handle secrets securely.
  • Build repeatable workflows: Create scripts and runbooks for scheduled and event-driven automation, and produce audit-friendly logs and reports.

Prerequisites

  • Basic knowledge of Microsoft Intune concepts (policies, profiles, apps, compliance).
  • Familiarity with Microsoft Entra ID and role-based access control (RBAC).
  • Basic PowerShell experience (running scripts, installing modules).
  • Access to a Microsoft 365 tenant with Intune administration permissions for testing.

How to get the most from this module

  • Try the examples in a test tenant before running in production.
  • Use a service principal with the smallest required Graph permissions for automation.
  • Log actions and test error handling so automation is safe and auditable.

Additional resources

  • Microsoft Graph PowerShell SDK documentation
  • Intune REST and Graph API reference
  • Microsoft Docs: automate Intune with PowerShell and Graph

Proceed to the next unit to review automation options and set up the Graph PowerShell SDK for your environment.