Add User and App Credential (username/App ID and password/certificate) Support for Intune AutoPilot Cmdlets
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.
1. Connect-AutoPilotIntune -credential
2. Connect-AutoPilotIntune -TenantID ... -ApplicationID ... -CertifiacateThumbprint