This playbook automates the extraction of remediation scripts from Microsoft Intune using the Microsoft Graph API. It retrieves credentials and certificates securely from PasswordState and connects to Microsoft Graph.
The playbook fetches all device health scripts, including their assignments and run summaries, and exports the data into a formatted Excel file using the ImportExcel module. The resulting file is then copied to a designated network share.