Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

error using Get-GPRegistryValue

$
0
0

I am running a command as below:

Get-GPRegistryValue -Name "test" -key "HKEY_LOCAL_MACHINE"


However I am getting the error:

Get-GPRegistryValue : The argument value cannot be an empty string.
Parameter name: keyPath
At line:1 char:1
+ Get-GPRegistryValue -Name "test" -key "HKEY_LOCAL_MACHINE"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Group...tryValueCommand:GetGPRegistryValueCommand) [Get-GPRegistryValue], ArgumentException
    + FullyQualifiedErrorId : UnableToRetrievePolicyRegistryItem,Microsoft.GroupPolicy.Commands.GetGPRegistryValueCommand

The test GPO has SMB Signing related group policy settings defined. However I get this error message and even I give the full

registry path as HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters, I still get an error.

What am I doing wrong here.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>