Forum Discussion
LAPS Creation using Intune
Hi, although I would suggest using LAPS (you could check this http://Hi,%20although I would suggest using LAPS (you could check this guide too https://systunation.com/windows-laps-the-new-powerful-era/ too), you could try to use the following command as already mentioned to add the user to local admins.
Add-LocalGroupMember -Group Administrators -Member apexadmin
The way to go here is to either use a platform script to just create the local admin, or better a detection-remediation to check its existence and create it if not exists.
Check the below https://systunation.com/boost-security-master-local-admins-with-intune/ to get an idea of how you could utilize it (it doesn't describe exactly what you are trying to achieve but could give you some guidance). If you need any help with the scripts, let me know.