Need to take ownership before this Article
How to give permission to a registry key for a user?
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
2 answers
Sort by: Most helpful
-
-
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
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.