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

A Microsoft 365 Endpoint Administrator needs to deploy a custom PowerShell script to all Windows 11 devices to optimize system performance. The script must run with administrator privileges and report its execution status back to Intune. What is the correct method to deploy this script using Microsoft Intune?

  1. ADeploy using 'Scripts' under 'Devices > Windows'
  2. BDeploy as a Line-of-business (LOB) app
  3. CDeploy as a device configuration profile using OMA-URI
  4. DDeploy via a Win32 app wrapper
Show answer & explanation

Correct answer: A. Deploy using 'Scripts' under 'Devices > Windows'

Intune provides a dedicated 'Scripts' feature under 'Devices > Windows' for deploying PowerShell scripts. This feature allows scripts to run with administrator context and provides reporting on script execution status, making it ideal for the described scenario.

Why the other options are wrong

  • B. LOB apps are for installing application packages, not for running arbitrary PowerShell scripts directly.
  • C. OMA-URI is for deploying custom settings via CSPs, not for executing PowerShell scripts directly with execution status reporting.
  • D. While a Win32 app wrapper *could* be used to package a script, it's an overly complex solution for a standalone PowerShell script when a dedicated 'Scripts' feature exists.

Intune PowerShell Script Deployment

A Microsoft Intune feature that allows administrators to deploy and run custom PowerShell scripts on managed Windows devices, with options for execution context and reporting.

  • Scripts can run in system context (administrator) or user context.
  • Provides detailed reporting on script execution success or failure.
  • Ideal for custom configurations, automation, or troubleshooting tasks.

Memory trick: Scripts Run Easily On Devices.

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