Enable local login for all users on the devices in intune device management

Markus Bartel 0 Reputation points
2024-09-27T04:29:24.58+00:00

I use intune for device managament and want to enable login on the devices with a local user account

Windows 365 Enterprise
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 48,576 Reputation points Microsoft Vendor
    2024-09-27T05:33:24.9433333+00:00

    @Markus Bartel, Thanks for posting in Q&A. For the local user account, is it already existing on the device? If not, we can create the local account on these Intune managed devices via PowerShell script.

    Here is a PowerShell script I use to create a local admin user account "newadmin" for your reference.

    $Password=ConvertTo-SecureString <your password> -AsPlainText -Force New-LocalUser "newadmin" -Password $Password -FullName "New admin" 
    Add-LocalGroupMember -Group "Administrators" -Member "newadmin"
    
    

    Save the script as admin.ps1 and deploy it via Intune.

    User's image

    https://video2.skills-academy.com/en-us/mem/intune/apps/intune-management-extension

    Then the local admin account is created and I can login the devices with this account.


    If the answer is helpful, 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.