I'm using PowerShell to create a script that reaches out to certain devices and turns off the touch screen functionality. Now that the script is almost done I'm running into an error during testing.
Error:
Set-RegDWord : Exception calling "OpenSubKey" with "2" argument(s): "Requested registry access is not
allowed."
At C:\13\TouchScreen Registry Hack\EliteBook810\DigitizerOff.ps1:43 char:5
+ Set-RegDWord -ComputerName $TargetHostname -Hive $Hive -Key $Key ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Set-RegDWord
Basically I can't change the "value" to 01 due to permissions and I don't know the best way to approach it. Thanks in advance.