Microsoft 365 Endpoint AdministratorManage identity and compliance (10-15%)Medium
A Microsoft 365 Endpoint Administrator needs to deploy a custom PowerShell script to all Windows 10/11 devices managed by Intune. The script needs to run with system context and report its execution status. Which Intune feature should the administrator use to deploy this script?
- AMicrosoft Store app deployment
- BPowerShell scripts in Intune
- CWin32 app deployment
- DDevice configuration profile (Custom OMA-URI)
Show answer & explanationAnswer & explanation
Correct answer: B. PowerShell scripts in Intune
Intune's dedicated PowerShell scripts feature allows administrators to upload custom PowerShell scripts, assign them to groups, and configure them to run in system or user context, with detailed reporting on execution status. This directly matches the requirements.
Why the other options are wrong
- A. Microsoft Store app deployment is for apps from the Microsoft Store, not custom PowerShell scripts.
- C. Win32 app deployment is for deploying applications (e.g., .exe, .msi), not typically for standalone PowerShell scripts that just need to run.
- D. Custom OMA-URI can push individual settings, but deploying and managing the execution of a complex PowerShell script is not its primary function or strength.
Intune PowerShell Script Deployment
A feature in Microsoft Intune that allows administrators to upload and deploy custom PowerShell scripts to Windows devices, providing options for execution context, retry behavior, and reporting.
- Supports running scripts in user or system context.
- Provides success/failure reporting for script execution.
- Ideal for automating tasks, configuring settings not available via profiles, or running diagnostics.
Memory trick: Script's the way for custom play, on every PC, come what may.