你如何find相应的registry值gpedit.msc设置?

我的问题是,如何find对应于gpedit.msc设置的registry值的位置。 我知道technet上有一些参考,但是已经过时了。

例如,如果我尝试修改设置,请通过regeditconfiguration自动更新,我将如何能够在Windowsregistry中find其值的位置? gpedit中有某种区域会告诉我它的位置吗?

我遇到了同样的问题,我发现使用PowerShell和PolicyFileEditor模块的解决方案。 就PowerShell而言,这很简单,所以不要担心。 一步一步地,这是你必须做的:

以管理员模式启动PowerShell

 #Look up the module paths (you will probably get 3) PS> $env:PSmoduleePath #make sure you have the NuGet package PS> Install-PackageProvider -Name NuGet -Force #Enter the path with your username in it at the <path> #(This only works if you have PS> Save-modulee -Name PolicyFileEditor -Path <path> #Install the module PS> Install-modulee -Name PolicyFileEditor #Get the machine policy registry value's Get-PolicyFileEntry -Path "$env:windir\system32\GroupPolicy\Machine\registry.pol" -all #Get the user policy registery valeu's Get-PolicyFileEntry -Path "$env:windir\system32\GroupPolicy\User\registry.pol" -all 

如果这一切都正常工作比你应该得到这样的事情(取决于gpedit设置): :)

PolicyFileEditor非常方便,因为它也可以导出gpedit注册表设置,然后导入它们, 在这里查看更多信息。 有关PowerShell本身的更多信息,我建议Microsoft虚拟学术课程 。

然而,PolicyFileEditor模块存在一个问题,那就是虽然你可以编辑注册表,但这些改变不会显示在gpedit中,你必须重新启动计算机以使更改生效(尝试使用Windows Defender或类似的东西进行测试)

编辑:测试soem后更多的LPG设置开始显示(重新启动后),我不知道什么是,但你将不得不自己测试它。

祝你好运。

gpedit(组策略)中的不同设置有不同的注册表位置。

对于设置“配置自动更新”,以下注册表被编辑。

 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\<GUID key>