Microsoft 365 Endpoint AdministratorManage devices and apps (55-60%)Easy

A Microsoft 365 Endpoint Administrator needs to deploy a custom PowerShell script to all corporate-owned Windows 11 devices to perform a specific system cleanup task. The script should run once on each device when it checks in with Intune. How should the administrator configure the deployment in Microsoft Intune?

  1. ADeploy the script using 'Scripts' under Devices > Windows > PowerShell scripts.
  2. BCreate a Custom OMA-URI profile to execute the PowerShell script.
  3. CDeploy the script as a Win32 app with a custom installation command.
  4. DEmbed the script within a Device Configuration profile (templates).
Show answer & explanation

Correct answer: A. Deploy the script using 'Scripts' under Devices > Windows > PowerShell scripts.

Microsoft Intune has a dedicated 'Scripts' feature under Devices > Windows > PowerShell scripts for deploying and managing PowerShell scripts. This is the most direct and intended method for this scenario.

Why the other options are wrong

  • B. Custom OMA-URI profiles are used for settings not natively exposed in Intune, not for executing arbitrary scripts.
  • C. While possible, deploying a simple script as a Win32 app is overly complex and not the primary method for standalone scripts.
  • D. Device Configuration profiles use templates for specific settings; they are not designed for direct script execution.

Intune PowerShell Script Deployment

Deploying custom PowerShell scripts to Windows devices using Intune's dedicated 'Scripts' feature for automated execution and monitoring.

  • Directly supports PowerShell scripts.
  • Provides execution context (user/system) and frequency options.
  • Logs results for monitoring script success/failure.

Memory trick: Scripts go to the 'Scripts' section.

More Manage devices and apps (55-60%) questions