Disabling a Guest account that was created through the Set up School PCs app

Gordon Matěj 20 Reputation points
2023-05-15T12:00:48.2233333+00:00

Hello, I would like to disable a guest account that I created via the Let guests sign in to these PCs option in Set up School PCs, I tried the OMA-URI - Accounts_EnableGuestAccountStatus option, unfortunately it didn't work.

I found this article on the forum: https://answers.microsoft.com/en-us/windows/forum/all/how-to-remove-guest-account-from-provisioned-pc/313ccdc9-4aa7-4a74-b7e9-e6bcf64f2ad7 but it doesn't answer my question either.

Have you ever encountered this problem or do you know the solution?

Thank you.

Regards

Matěj Gordon

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
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

Accepted answer
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    2023-05-17T00:14:37.9833333+00:00

    @Gordon Matěj ,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue:

    You were trying to disable a guest account that you created via the "Let guests sign into these PCs" option in" Set up School PCs." You tried using the OMA-URI - Accounts_EnableGuestAccountStatus option, but were not able to disable the account.

    Solution:

    You had to reference this OMA-URI:
    ./Vendor/MSFT/SharedPC/AccountModel and set it to "1."

    Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Gordon Matěj 20 Reputation points
    2023-05-16T17:10:13.08+00:00

    I found the answer, I had to use this OMA-URI:
    ./Vendor/MSFT/SharedPC/AccountModel and set it to1

    https://learn.microsoft.com/en-us/windows/client-management/mdm/sharedpc-csp

    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.