Remove-GPRegistryValue not working?

Stefan Döhring 1 Reputation point
2020-10-15T16:03:34.003+00:00

Hi,

I have an additional administrative Template registry setting named "EnableFIDODeviceLogon".
I can get more Details with Get-GPRegistryValue:

32751-img01.jpg

If I remove this setting via Remove-GPRegistryValue, Powershell indicates that this value cannot be found. How can I delete the Value?

32715-iomg2.jpg

I can also modify the value with Set-GPRegistryValue. But not remove it completely.

How can I delete the entry completely?

DC OS Version is Server 2016.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,316 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,509 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 46,551 Reputation points
    2020-10-15T18:30:23.817+00:00

    Does it work if you remove the trailing "\"?

    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 36,336 Reputation points Microsoft Vendor
    2020-10-16T07:43:49.123+00:00

    Hi,

    I've tested Remove-GPRegistryValue and it works. You have to remove the last backslash \ as Rich said.

    See examples here
    https://learn.microsoft.com/en-us/powershell/module/grouppolicy/remove-gpregistryvalue?view=win10-ps

    Best Regards,
    Ian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.