Manage local administrator rights on Windows 365 Cloud PCs.

Manage local administrator rights on Windows 365 Cloud PCs.

logo
Managing local administrator rights on Windows 365 Cloud PCs.



Introduction

I’ve been writing about Windows 365 over the past few months, and in the original Windows 365 blog post I quickly mentioned that users by default doesn’t have local admin rights on their Cloud PC(s), and how to grant users local administrator privileges. The weather is cold and it’s raining today, and now that I’m just sitting here in my home office with a freshly brewed cup of coffee, why not write a post about how to manage local administrator rights on Windows 365 Cloud PCs.

I know that it can be done with a Group Policy Object (GPO) and via PowerShell, but in this blog post, I will be focusing on a custom configuration profile and the Windows 365 user settings.

 


The original blog post about – How to configure Windows 365 Enterprise in Microsoft Endpoint Manager

Managing local admin rights on Windows 365 Cloud PCs

Like in every great cooking show on television I’ve cheated a bit, and already prepared a security group within my on-prem Active Directory and it has been synced with AD Connect to Azure AD.

This security group is named “W365_Enterprise_Local_Admin” and will only contain users that I will grant local admin rights.


LocalAdmin_Note

 

Manage local admin rights with a configuration profile


Let’s get started by visiting the Microsoft Endpoint Manager admin center.
Go to https://endpoint.microsoft.com

First, we will create a filter for Cloud PCs.
Click on Devices | Filters (preview) | Create
01

I already created a filter for Windows 365 Cloud PCs, but you can copy the rule syntax used in my filter.
(device.model -contains “Cloud PC”)
02

Once you have created the Windows 365 Cloud PC filter, you can go ahead and create the custom configuration profile.
Click on Devices | Configuration profiles | Create profile
Select Windows 10 and later in the drop-down menu.
Select Templates in the drop-down menu.
Select Custom on the list and click Create.
03

Fill in the required field and click Next.
04

Click Add.
05

CSP_Note
Source: Microsoft   
 

Name Add Domain Group to Local Administrator Group
Description This is optional.
OMA-URI ./Vendor/MSFT/Policy/Config/LocalUsersAndGroups/Configure
Data type String
Value <GroupConfiguration>
    < accessgroup desc = “S-1-5-32-544”>
        <group action = “U”/>
            <add member = “MINDCORELABW365_Enterprise_Local_Admin”/>
    </accessgroup>
</GroupConfiguration>

Note. For adding Azure AD users and/or groups please read more about that in the LocalUsersAndGroups CSP policy.  
Tip. You can use SID S-1-5-32-544 instead of the group name (Administrators). – I would especially recommend it if you are managing a multi-language environment since the SID is not language dependent.  
 
Fill in all the required fields and click Save.
06

Click Next.
Set scope tags if needed and click Next.
07

Add the security group and filter as Include in filter mode.
Click Next.
Set applicability rules if needed and click Next.
08

Review your configuration and click Create.
09

To monitor the status of the configuration profile, click on Devices | Configuration profiles and select the profile.
10

11

To check the filter evaluation on a Windows 365 Cloud PC, click on Devices | Windows and choose the Cloud PC.
Click on Filter evaluation (preview) and select the configuration profile from the list.
12

If I connect to my Cloud PC, I can confirm that the security group has been added to the local administrator group. Awesome!
17 


Manage local admin rights with Windows 365 user settings
 

UserSettings_Note

 



Another way to grant a user local administrator privileges, is to create a Windows 365 user setting.

The main difference between the two approaches is that the custom configuration profile adds a domain security group (which probably contains several users) to the local administrator group, and the Windows 365 user setting adds the logged-on user directly to the local administrator group (if that user is a member of the domain security group used in the user setting).

Both scenarios are quite dynamic as you only need to remove the user from the domain security group to take away the local administrator privileges from the end-user.

Click on Devices | Windows 365 | User settings
Click on Add.
13

Fill in the required field, tick the Enable Local admin check box, and click Next.
14

Add the security group and click Next.
15

Review your configuration and click Create.
16

The Windows 365 user setting didn’t add the logged-on user to the local administrator group, on my current Windows 365 Cloud PC, probably because it was provisioned with a custom Windows 11 image where I changed the system locale language to Danish before sysprep (which also translates the local group names to Danish during provisioning of new Cloud PCs).

If I reprovision my Windows 365 Cloud PC with a standard gallery Windows 11 image (which is in English), I can confirm that my user account has been added to the local administrator group, which kind of strengthens my suspicion that Windows 365 user settings are currently not working on custom images where you have changed the system locale language.
18

After a while, the custom configuration profile will also be applied to my Cloud PC if the profile still has an assignment.
19



Summary


In this blog post you have learned how to grant a user local administrator privileges on their Windows 365 Cloud PC. If you are using a custom image and you have changed the system locale language, the Windows 365 user settings will probably not work, but by the time of reading this blog post, it may have been fixed by Microsoft. Happy testing!

As always, if you have any questions regarding this topic, feel free to reach out to us.

Website | + posts

Sune Thomsen is based in Denmark, and he is a dedicated IT Consultant at Mindcore with over 19 years of experience in the IT industry. He has spent at least a decade specializing in client management via Microsoft Configuration Manager and Intune.

His key areas:
- Microsoft Intune (i.e., Autopilot, Windows 365, Endpoint Security, etc.)
- Client Management in general
- Application Management
- Cloud transitioning and building solutions toward the cloud

He's a Windows 365 and Windows MVP, an Official Contributor in a LinkedIn group with 41.500 members, and a Microsoft 365 Enterprise Administrator Expert.

Sune is passionate about community work and enjoys sharing his knowledge and experience and inspiring others via our blog. Besides blogging, he also writes newsletters on behalf of the Windows 365 community, does technical reviews for book publishers, and speaks at tech events.

Official Contributor here "Modern Endpoint Management":
https://www.linkedin.com/groups/8761296/

Table of Contents

Share this post
Search blog posts
Search
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.

Modern Workplace consultant and a Microsoft MVP in Windows and Devices.

Infrastructure architect with focus on Modern Workplace and Microsoft 365 security.

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Cloud & security specialist with focus on Microsoft 365.

Cloud & Security Specialist, with a passion for all things Cybersecurity

Cloud and infrastructure security specialist with background in networking.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

Modern workplace and infrastructure architect with a focus on Microsoft 365 and security.

follow us in feedly
Categories

Follow on SoMe