How to create local admin account and push on fresh brand new devices via Intune?

Vinod Survase 4,726 Reputation points
2023-07-10T10:21:45.49+00:00

How to create local admin account and push on fresh brand new devices via Intune?

Here is use case:

We wanted to push the local admin account on each devices so that Helpdesk team can take control of users devices in case they need to work on users devices and resolve any issues of users on apps and any other troubleshooting.

We are only cloud only so we dont have on-premises setup like SCCM and AD.

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,789 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
910 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,313 questions
Microsoft Intune Compliance
Microsoft Intune Compliance
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Compliance: Adhering to rules, standards, policies, and laws.
146 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,692 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Pavel yannara Mirochnitchenko 12,411 Reputation points MVP
    2023-07-10T11:16:27.86+00:00

    With powershell, here you go;

    1. New-LocalUser "vinodadmin" -Password (ConvertTo-SecureString -AsPlainText -Force 'YourPassword')
    2. Add-LocalGroupMember -SID "S-1-5-32-544" -Member "vinodadmin"
    1 person found this answer helpful.
    0 comments No comments

  2. Lu Dai-MSFT 28,366 Reputation points
    2023-07-11T01:54:46.61+00:00

    @Vinod Survase Thanks for posting in our Q&A.

    Off course you can deploy the PowerShell script via intune as Pavel said. Here is the link about how to deploy scripts via intune.

    https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension

    And we can also deploy a custom profile to make it. Please refer to the part "In case of a non-domain account" of the following blog written by Rahul.

    https://rahuljindalmyit.blogspot.com/2021/05/intune-different-ways-of-setting-local.html

    Note: Non-Microsoft link, just for the reference.

    Hope it will help.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.