Shared PC-Run as admin

Sedmák Jakub 40 Reputation points
2023-08-02T10:11:22.71+00:00

Hi, at school, for ICT classrooms I use the so called "shared computer mode" https://learn.microsoft.com/en-us/windows/configuration/set-up-shared-or-guest-pc?tabs=intune However, there I have a problem that for anything I want to run as administrator, it refuses me the operation. According to the Microsoft documentation this is correct. I have tried to configure the mode manually according to this site https://learn.microsoft.com/en-us/windows/configuration/shared-pc-technical however I have never gotten to the point where the computer only offers me a single user login.

I would need to ensure that I have shared computer mode enabled, but can also run programs as an administrator via a menu option. Would anyone have any advice?

Thank you in advance.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 questions
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,975 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,446 questions
{count} votes

Accepted answer
  1. Crystal-MSFT 51,046 Reputation points Microsoft Vendor
    2023-08-03T01:46:04.6733333+00:00

    @Sedmák Jakub, Thanks for the reply. Based on the information provided, it seems that the Shared PC mode in Windows is preventing you from running programs as an administrator, which is expected behavior since Shared PC mode is designed to limit user access and prevent changes to the system. And I know you want to run programs as an administrator.

    Here are some options I think you can try to see if it can work:

    One option is to use the "runas" command in a command prompt session to run a program as an administrator. To do this, open a command prompt session, type "runas /user:administrator <program>" (without quotes), and then press Enter. You will be prompted to enter the administrator password, after which the program should open as an administrator.

    Another option you can try is to use a Group Policy to configure the system to allow specific users to run programs as administrators. To do this, follow these steps:

    1. Open the Group Policy Editor.
    2. Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
    3. Double-click on the "Allow log on locally" policy to open its properties.
    4. Click the "Add User or Group" button to add the account you want.
    5. Click the "OK" button to apply the policy.

    Once this policy is configured, check if the user is able to run programs as an administrator by right-clicking on the program and selecting "Run as administrator" from the context menu.

    Please try the above suggestions and if there's any update, feel free to let us know.


    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 additional answers

Sort by: Most 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.