Article ID: 80244
Article Type: Troubleshooting
Last Modified:
You receive access denied errors during PowerShell script execution.
During script execution, you received one of the following errors:
Get-ItemProperty : Requested registry access is not allowed.
At C:\regEdit.ps1:13 char:30
+ $temp = (Get-ItemProperty -Path $Key).$Value
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACH...8.inf oem19.inf:String) [Get-ItemProperty], SecurityException
+ FullyQualifiedErrorId : System.Security.SecurityException.Microsoft.PowerShell.Commands.GetItemPropertyCommand
PowerShell execution is restricted or certain registry keys lack administrator access.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
HKLM\SYSTEM\DriverDatabase\DriverPackages\vioscsi.inf_amd64....
HKLM\SYSTEM\DriverDatabase\DriverInfFiles\oem...
HKLM\SYSTEM\DriverDatabase\DeviceIds\PCI\\...
HKLM\System\CurrentControlSet\Services\vioscsi