{"id":4084,"date":"2019-05-03T07:05:53","date_gmt":"2019-05-03T07:05:53","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4084"},"modified":"2024-03-07T01:47:04","modified_gmt":"2024-03-07T01:47:04","slug":"powershell-script-to-changeset-registry-key-permissions-with-subkeys-for-a-user","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-changeset-registry-key-permissions-with-subkeys-for-a-user","title":{"rendered":"Powershell script to change\\set Registry Key Permissions with Subkeys for a User"},"content":{"rendered":"\n<p>Powershell script to set Registry Key Permissions with Subkeys for a User ( Needs to be run as admin as its changing things in HKCU:\\Software\\Policies<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">$acl = Get-Acl HKCU:\\Software\\Policies\\Google\r\n$inherit = [system.security.accesscontrol.InheritanceFlags]\"ContainerInherit, ObjectInherit\"\r\n$propagation = [system.security.accesscontrol.PropagationFlags]\"None\"\r\n$rule = New-Object System.Security.AccessControl.RegistryAccessRule (\"domain\\user\",\"FullControl\",$inherit,$propagation,\"Allow\")\r\n$acl.SetAccessRule($rule)\r\n$acl |Set-Acl -Path HKCU:\\Software\\Policies\\Google<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Powershell script to set Registry Key Permissions with Subkeys for a User ( Needs to be run as admin as its changing things in HKCU:\\Software\\Policies<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2949,576,548],"class_list":["post-4084","post","type-post","status-publish","format-standard","hentry","category-research","tag-change-permissions","tag-powershell","tag-registry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=4084"}],"version-history":[{"count":3,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4084\/revisions"}],"predecessor-version":[{"id":7760,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4084\/revisions\/7760"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}