How to give permission to a registry key for a user?

Chakraborty, Soumavo (IT) 21 Reputation points
2022-04-12T10:17:14.677+00:00

How to give permission to a registry key for a user?
Device is Azure AD joined intune managed. when i am trying to give permission it says no names found

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,957 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,577 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Crystal-MSFT 44,931 Reputation points Microsoft Vendor
    2022-04-13T01:57:35+00:00

    @Chakraborty, Soumavo (IT) , Based on my test, we can use Powershell commands to add the permission for Azure AD user. Here is my test for the reference:

    Powershell commands: Add user hello1@M3xxxxx.onmicrosoft.com with full control permission on "HKLM:\SOFTWARE\7-Zip"
    Note: Please click Powershell ISE and choose “Run as administrator to run these commands。Meanwhile, change the user and the registry key as your reference.

    $acl = Get-Acl HKLM:\SOFTWARE\7-Zip  
    $rule = New-Object System.Security.AccessControl.RegistryAccessRule ("AzureAD\hello1@M3xxxxx.onmicrosoft.com","FullControl",@("ObjectInherit","ContainerInherit"),"None","Allow")  
    $acl.SetAccessRule($rule)  
    $acl |Set-Acl -Path HKLM:\SOFTWARE\7-Zip  
    

    192506-image.png
    Hope it can help.


    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.


  2. Hadar Haim 1 Reputation point
    2023-02-02T11:20:04.35+00:00

    Need to take ownership before this Article

    0 comments No comments