How to remove other logged in users when device is enrolled in intune?

Atharva Deshpande 20 Reputation points
2025-01-23T05:21:12.6466667+00:00

So, we have enrolled our devices in Intune, and we get the option to login using our credentials on the lock screen but now the issue is that another user also logged in using the other user option, but now that user has their own PC and i want to remove the user but couldn't figure out how to remove the user.

**if this is not the right place to ask the question can someone please point in the right direction, any help is appreciated.

**this is not interfering with my work but it is just that why have an additional user in my pc when that user is never going to use it anyways

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,007 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,474 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 51,226 Reputation points Microsoft Vendor
    2025-01-27T02:24:53.2266667+00:00

    @Atharva Deshpande, Thanks for posting in Q&A. For your enrolled device, please check if it is Microsoft Entra joined. if yes, this join type can allow all the organization Microsoft Entra users to login. This is by default.

    For the user you mentioned, is this a local user. If yes, we can remove the local user via PowerShell Script

    Remove-LocalUser -Name <user name>

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/remove-localuser?view=powershell-5.1

    If the users on all the devices are the same, we can consider deploy the script via Intune.

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

    Hope the above information can help.


    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.