Add User and App Credential (username/App ID and password/certificate) Support for Intune AutoPilot Cmdlets
Make changes to the Graph API to allow Connect-AutoPilotIntune cmdlet of the WindowsAutoPilotIntune module accept secrets (password and/or certificates) as a parameter to facilitate scripting. At the moment it only accepts <user> as a parameter. When such a script is added to say, Task Scheduler, the user account used will have to be logged into the machine for the task to successfully run the PS script.
Connect-AutoPilotIntune -TenantID ... -ApplicationID ... -CertifiacateThumbprint