M HYPE SPLASH
// updates

How to update Computer\HKEY_CLASSES_ROOT\CLID\{ID} Value

By Emma Payne

does anyone know how to change/ update Computer\HKEY_CLASSES_ROOT\CLID{ID} value>? I use the following PowerShell binding to Group Policy for updating certain registry key in HKCR when user login to the Domain but cannot work well. Actually, Try to perform this in the windows server 2016, everything works well. if the PowerShell was triggered by GPO, cannot work well. because it is weird PowerShell will be triggered once. when the client re-login to the Domain, the PowerShell will not be triggered. After that I separate the PowerShell to two files. it turns out that the first one was triggered, another one never be triggered. I have no idea the problem is GPO problem or PowerShell problemThanks

New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT -ErrorAction SilentlyContinue $acl = Get-Acl $_DefaultOneDriveFromExplorerRegPath $rule = New-Object System.Security.AccessControl.RegistryAccessRule ("litwareinc\Administrator","FullControl","Allow") $acl.SetAccessRule($rule) $acl |Set-Acl -Path $_DefaultOneDriveFromExplorerRegPath Set-ItemProperty -LiteralPath $_DefaultOneDriveFromExplorerRegPath -Name System.IsPinnedToNameSpaceTree -Value 0
5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy