Forum Discussion
creating a local account when using ONLY intune no AD link
Hi all!
Was wondering if you can help I want to create a policy or rule to create a local admin account on devices when enrolled to intune.
I cant seem to find anything:
Is this something that is possible?
Hi AB21805,
use any of the community LAPS solutions out there as mentioned for Admin Password Management or if you are fine with additional AAD groups in the local Administrators group for example, you should have a look at the new 20H1 Policy CSP "LocalUsersAndGroups". This CSP will not create a user for you but as mentioned you can add AAD groups for example to local groups.
Have a look here: https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-localusersandgroups#localusersandgroups-policies
best,
Oliver
- You can achieve this using the Accounts CSP and a custom OMA-URI:
https://docs.microsoft.com/en-us/windows/client-management/mdm/accounts-csp
Michael Niehaus has a good blog about it and why you may not want to:
https://oofhours.com/2020/05/07/you-can-use-intune-to-create-a-local-admin-account-but-that-doesnt-mean-its-a-good-idea
Or try something like Serverless LAPS:
https://www.srdn.io/2018/09/serverless-laps-powered-by-microsoft-intune-azure-functions-and-azure-key-vault Hi AB21805,
use any of the community LAPS solutions out there as mentioned for Admin Password Management or if you are fine with additional AAD groups in the local Administrators group for example, you should have a look at the new 20H1 Policy CSP "LocalUsersAndGroups". This CSP will not create a user for you but as mentioned you can add AAD groups for example to local groups.
Have a look here: https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-localusersandgroups#localusersandgroups-policies
best,
Oliver
- AB21805Bronze Contributor
So I want a local admin account to basically bypass any restrictions i have set for the device etc so an example would be if I set the device to not show display settings but the local admin cans still bypass this? Also I really dont understand the XML stuff! is there no way of doing it in End point manager / intune? (I am so new to this!)
- If you create a local admin it will not be effected by the user policies as he is not a AAD user in fact. But device restrictions are applied at device level, would still be active. I guess for your case the easiest way would be a LAPS community solution.
Here is a blog article listing several of the LAPS community solutions: https://www.vansurksum.com/2020/02/11/challenges-while-managing-administrative-privileges-on-your-azure-ad-joined-windows-10-devices/
- Pa_DBrass Contributor
Have you looked into the option of using Azure AD > Devices > Device Settings > additional local administrators
- AB21805Bronze Contributor