دوست عزیز اشتباه از من بود دقیقا کد زیر را بدون هیچ تغییری وارد کنید.
$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerNam e
$person = [System.Security.Principal.NTAccount]"Users"
$access = [System.Security.AccessControl.RegistryRights]::FullControl
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
$propagation = [System.Security.AccessControl.PropagationFlags]::None
$type = [System.Security.AccessControl.AccessControlType]::Allow
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($ person, $access, $inheritance, $propagation, $type)
$acl.AddAccessRule($rule)
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerNam e $acl
فقط ComputerName را به صورت چسپیده وارد کنید.