How to delete user profiles attached to Azure AD Accounts on a local PC

Phosk 0 Reputation points
2023-10-05T14:50:18.34+00:00

Hello, I have a Windows 10 device that has one intended purpose. It will have a local user account with no password, and will be available for users to sign in to using their own accounts if they need.

I successfully logged in and created the local account. The issue I'm having is that there is an administrator profile existing on the PC created when I logged in using Device Enrollment Manager to create the local user account. I want to remove this account from the PC, so that it does not have a profile or User account on that PC, and does not appear on the login screen.

Removing from control panel > User Accounts > User Accounts > Manage other accounts does not work from the local account as the administrator account does not appear.

I can not find any method of doing this under the manage users settings page.

(Edit) attempted removing by searching for "View advanced system settings" going to User Profiles > clicking on the profile and selecting delete, but the delete button was unavailable from either account.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Windows for business | Windows Client for IT Pros | User experience | Other
Microsoft Security | Intune | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,526 Reputation points Moderator
    2023-10-05T23:20:01.5466667+00:00

    Hello @Phosk , if you need to delete an Entra ID (formerly Azure AD) user profile, the View advanced system settings option is the way to go. Ensure the user is not logged in the device to avoid finding the Delete button in gray. Keep in mind however, that deleting user profiles won't block Entra ID users from loging in.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.

    1 person found this answer helpful.

  2. Crystal-MSFT 53,991 Reputation points Microsoft External Staff
    2023-10-06T01:52:41.61+00:00

    @Phosk, Thanks for posting in Q&A. From your description, it seems the device is enrolled with DEM account. If you want just the local account. You can unenroll the device from Intune and disconnect it from Azure AD.

    You can go to Settings->Accounts->Access work or School, find the account and click disconnect. As a reminder, please ensure the local account is accessible before we remove the work account.

    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.

    1 person found this answer helpful.

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.