Forum Discussion
Sathishgs17
Mar 13, 2024Copper Contributor
Intune
Dear All, We have 2000 endpoints which do not have connected to any of the domain. All the 2000 endpoints laptops and desktops are using directly using local account which is having administrator...
SebastiaanSmits
Mar 13, 2024Steel Contributor
You can use a combination of Powershell and OMA URI top accomplish this.
For Powershell you can use the following and build a script from it: Remove–LocalGroupMember –Group “Administrators”. It can be tricky to get the right members but there are a lot of resources out there.
You can use this resource to create a local admin on the devices: https://www.prajwaldesai.com/create-a-local-admin-account-using-intune/