none
"Requested registry access is not allowed" RRS feed

  • General discussion

  • 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.

    • Changed type Bill_Stewart Wednesday, November 29, 2017 11:50 PM
    • Moved by Bill_Stewart Wednesday, November 29, 2017 11:50 PM Abandoned
    Wednesday, October 25, 2017 12:43 PM

All replies

  • Only the logged in user can change the settings.


    \_(ツ)_/

    Wednesday, October 25, 2017 1:07 PM
  • The hive is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_03EB&PID_840B&MI_00\7&18a9c453&0&0000 and HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_03EB&PID_840B&MI_01\7&18a9c453&0&0001. So not user specific.. it's on the system level... ? 
    Wednesday, October 25, 2017 1:18 PM
  • You can't change it if you don't have permission.


    -- Bill Stewart [Bill_Stewart]

    Wednesday, October 25, 2017 2:16 PM