Retrieves Intune scripts from Microsoft Endpoint Manager.
The Get-CIPPIntuneScript function retrieves Intune scripts (including PowerShell, shell scripts, remediation scripts, and Linux scripts) from Microsoft Endpoint Manager for a specified tenant. The function retrieves all script types in a single operation.
![]()
![]()
Specifies the ID of the customer tenant. This parameter is mandatory.
![]()
![]()
When specified, retrieves Intune scripts from the CIPP report database cache instead of live Microsoft Graph data. Use 'AllTenants' with this switch for cached cross-tenant data.
PS > Get-CIPPIntuneScript -CustomerTenantID "contoso.onmicrosoft.com"PS > Get-CIPPIntuneScript -CustomerTenantID "contoso.onmicrosoft.com" -UseReportDB