Intune add the Primary User to local admin group
Add the device primary user to local administrators group with PowerShell and no CSP
View the full blog post here
http://www.systanddeploy.com/2020/10/endpoint-analytics-proactive.html
Available scripts
You will find the below scripts:
- Add_PrimaryUser_asAdmin_with_Remove.ps1: Remove existing user from local admin group and add the primary user of the device
- Add_PrimaryUser_asAdmin_without_Remove.ps1: Add the primary user of the device to local admin group