Microsoft 365 Endpoint AdministratorManage devices and apps (55-60%)Easy
A Microsoft 365 Endpoint Administrator needs to deploy a custom configuration to a subset of Windows 11 devices. This configuration involves setting a registry key that is not exposed through standard Intune settings or the Settings Catalog. The administrator has created a PowerShell script to achieve this. How should the administrator deploy this script to the target devices via Intune?
- ACreate a 'Custom' device configuration profile using OMA-URI.
- BImport the script into a 'Settings Catalog' profile.
- CUse a 'Script' policy under 'Devices > Windows > PowerShell scripts'.
- DCreate a Win32 app and include the PowerShell script as part of the installation.
Show answer & explanationAnswer & explanation
Correct answer: C. Use a 'Script' policy under 'Devices > Windows > PowerShell scripts'.
Intune provides a dedicated feature for deploying PowerShell scripts to Windows devices. This allows administrators to run custom scripts for configurations not available through built-in settings or to perform advanced tasks.
Why the other options are wrong
- A. Custom OMA-URI profiles are used for settings exposed via CSPs, not for directly running arbitrary PowerShell scripts.
- B. The Settings Catalog provides a list of configurable settings; it does not allow importing or running custom PowerShell scripts directly.
- D. While possible, packaging a simple script as a Win32 app is overkill and not the primary method for script deployment.
Intune PowerShell Script Deployment
A feature in Microsoft Intune that allows administrators to deploy and execute custom PowerShell scripts on Windows devices for advanced configuration or automation tasks.
- Supports running scripts in user or system context.
- Provides execution feedback and error reporting.
- Ideal for settings not available in standard Intune profiles.
Memory trick: PowerShell scripts are the direct path for custom commands.