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 for business | Windows Client for IT Pros | User experience | Other
Microsoft Security | Intune | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Hadar Haim 1 Reputation point
    2023-02-02T11:20:04.35+00:00

    Need to take ownership before this Article

    0 comments No comments

  2. Crystal-MSFT 54,211 Reputation points Microsoft External Staff
    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 ******@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\******@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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.