Skip to content
UserRights Policy Deployment Using Intune | Group Policy Replacement

UserRights Policy Deployment Using Intune | Group Policy Replacement

Written By Anoop C Nair
Last Updated July 25, 2024
Posted In Intune
SHARE

In this post, you will learn how to deploy UserRights policies successfully. I am grateful to my colleague Mark Thomas for helping me fix the issue.

You can use Intune to deploy security policies using out-of-box templates or Windows 10 custom policy CSP (UserRights Policy).

I checked Intune Administrative templates, Security baselines, and box Device restriction policies to find options to deploy Windows 10 UserRights settings. I couldn’t see any out-of-box policies related to UserRights settings.

Index
Custom Windows 10 Policy CSP
XML Format – First Try
String Option – UserRight/AccessFromNetwork
ASCII Value (  ) Issues with UserRights CSP
Results – UserRights Policy Deployment Using Intune | Group Policy Replacement
UserRights Policy Deployment Using Intune | Group Policy Replacement – Table.1
UserRights Policy Deployment Using Intune | Group Policy Replacement - Fig.1
UserRights Policy Deployment Using Intune | Group Policy Replacement – Fig.1

I have two options to deploy UserRights settings:

Patch My PC
  • Group Policy if the device is domain joined or Hybrid Azure AD Joined
    • Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment.
  • Custom Windows 10 policy CSP using Intune for Azure AD joined devices.

Custom Windows 10 Policy CSP

In this post, you shall take an example of the specific policy CSP called:

“./Device/Vendor/MSFT/Policy/Config/UserRights/AccessFromNetwork

I’m trying to provide “access from network” access to two user groups called “Administrators” and “Remote Desktop Users.”

XML Format – First Try

I tried custom policy CSP using the Microsoft document recommendation here.

  • Created custom Intune policy CSP using – Data Type -> String (XML File)
UserRights Policy Deployment Using Intune | Group Policy Replacement - Fig.2
UserRights Policy Deployment Using Intune | Group Policy Replacement – Fig.2

Sample XML for UserRights/AccessFromNetwork settings to add Remote Desktop UsersAdministrators ( note this symbol) groups

  <SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>

    <Replace>
      <CmdID>2</CmdID>
      <Item>
        <Meta>
          <Format>chr</Format>
          <Type>text/plain</Type>
        </Meta>
        <Target>
          <LocURI>./Device/Vendor/MSFT/
Policy/Config/UserRights/AccessFromNetwork</LocURI>
        </Target>
        <![CDATA[Remote Desktop UsersAdministrators]]>
      </Item>
    </Replace>
  <Final/>
  </SyncBody>
</SyncML> 

The Data Type string (xml file) policy CSP settings failed with following error:

Error Code - 0x87d101f4
Syncml(500). The recipient encountered an unexpected condition which prevented it from fulfilling the request 
UserRights Policy Deployment Using Intune | Group Policy Replacement - Fig.3
UserRights Policy Deployment Using Intune | Group Policy Replacement – Fig.3

String Option – UserRight/AccessFromNetwork

As you saw above, the string XML file option to deploy policy CSP failed. Next, try Data Type -> String with Windows 10 policy CSP.

I tried to look at the GitHub thread and use the following settings to deploy the UserRight/ AccessFromNetwork policy CSP.

UserRights Policy Deployment Using Intune | Group Policy Replacement - Fig.4
UserRights Policy Deployment Using Intune | Group Policy Replacement – Fig.4

The above setting was successfully applied on the Windows 10 device, but Intune shows an error -2016281112 (Remediation failed). These error details are also explained in the above GitHub thread.

ASCII Value (  ) Issues with UserRights CSP

This is the option where my colleague Mark Thomas came to the rescue. Mark helped me FIX the Windows 10 custom policy CSP ASCII character-related issue.

NOTE – This ASCII value ( ) mismatch is also discussed in the GitHub thread.

String Value to provide “UserRight/AccessFromNetwork” access to the following groups:

  • Administrators
  • Remote Desktop Users

The following are the third and final options that were successful.

UserRights Policy Deployment Using Intune | Group Policy Replacement - Fig.5
UserRights Policy Deployment Using Intune | Group Policy Replacement – Fig.5

Policy CSP Settings Intune:

Name - UserRights/AccessFromNetwork
Description - User Rights
OMA-URI - ./Device/Vendor/MSFT/Policy/Config/UserRights/AccessFromNetwork
Data Type - String
Value - Remote Desktop UsersAdministrators

Results – UserRights Policy Deployment Using Intune | Group Policy Replacement

The Windows 10 custom policy CSP was successfully deployed without group policy settings. Happy modern management!

UserRights Policy Deployment Using Intune | Group Policy Replacement - Fig.6
UserRights Policy Deployment Using Intune | Group Policy Replacement – Fig.6

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Anoop C Nair is Microsoft MVP! He is a Device Management Admin with more than 20 years of experience (calculation done in 2021) in IT. He is a Blogger, Speaker, and Local User Group HTMD Community leader. His main focus is on Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 11 comments

  1. Hi,
    where and how do I find the endpoint settings defined from Intune?
    For GPO, were the tools gpresults and rsop? Is there something similar for Intune?
    Thanks
    David

  2. Hi Anoop,
    I am trying to restrict few user groups from interactive login to AzureAd joined devices and was exploring UserRights/DenyLocalLogOn. I did give the objectID of the azure ad group in the string but it didn’t work. Have you tried this? Also, is there any other better way to handle this?

    1. Did you ever find a way to deny a local login using a CSP? I was trying to limit anyone in the local Guests group on the machine from logging in. This was my final setting that applied successfully after reading this article.

      Name: DenyInteractiveLogonRight
      OMA-URI: ./Device/Vendor/MSFT/Policy/Config/UserRights/DenyLocalLogOn
      Data type: String
      Value: Guests

  3. Hi Guys,

    Do you know if there is a way to include multiple domain users in this userrights CSP?

    I tried with the separators included in this article but it is not working.

    Thanks a lot

  4. How do I add an Azure AD group to this list? I have tried just about everything, and cannot figure out how to do it.

  5. It doesn’t appear to be possible to use a AAD group in the assignment which is terrible really. This should be a standard function

  6. Hi, unfortunately neither the option with the ASCII value (  ) nor with the CDATA works for us… what else can we do? we want to add citrix server.

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read