You can use Intune to deploy security policies using out of box templates or Windows 10 custom policy CSP (UserRights Policy). In this post, you shall learn how to successfully deploy UserRights policies. Thanks to my colleague Mark Thomas to help me in fixing the issue.
I checked Intune Administrative templates, Security baselines, and out of box Device restriction policies to find out options to deploy Windows 10 UserRights settings. I couldn’t find any out of box policies related to UserRights settings.
I have two options to deploy UserRights settings:
- Group Policy if the device is domain joined or Hybrid Azure AD Joined
- Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment. More details here.
- Custom Windows 10 policy CSP using Intune for Azure AD joined devices. More details here.
Custom Windows 10 Policy CSP
In this post, you shall take example of the specific policy CSP called:
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)
- Sample XML for UserRights/AccessFromNetwork settings to add Remote Desktop UsersAdministrators ( 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 UsersAdministrators]]> </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
String Option – UserRight/AccessFromNetwork
String XML file option to deploy policy CSP failed as you saw above. The next option is to try Data Type -> String with Windows 10 policy CSP.
I tried to look at GitHub thread here and use the following settings to deploy UserRight/ AccessFromNetwork policy CSP.
The above setting got successfully applied on the Windows 10 device but Intune shows an error -2016281112 (Remediation failed). This error details also explained in the above GitHub thread.
ASCII Value ( ) Issues with UserRights CSP
This is the option where my colleague Mark Thomas came to rescue. Mark helped me to FIX the Windows 10 custom policy CSP ASCII character related issue.
NOTE – This ASCII value ( ) mismatch is also discussed in GitHub thread here.
String Value to provide “UserRight/AccessFromNetwork” access to following groups:
- Remote Desktop Users
The following is the third and final options which was successful.
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 UsersAdministrators
Results – UserRights Policy
The Windows 10 custom policy CSP successfully deployed without using group policy settings. Happy modern management!
- Policy CSP – UserRights – https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-userrights
- How to Manually Sync Intune Policies ASAP from Enrolled Devices