GPMC Modeling Wizard Error "The given key was not present in the dictionary."

Russell Ramey 26 Reputation points
2021-04-06T19:42:24.923+00:00

Running the Group Policy Management Console Modeling Wizard I get the message

"An error occurred while generating report:
The given key was not present in the dictionary."

There is a KB article which is utterly useless in figuring out what key it isn't finding - here1.

I can get the actual group policy RSoP result successfully by running Get-ResultantSetofPolicy in Powershell on a machine with the policies applied but it would sure be useful to have this tool work (or to actually figure out that I really have a bad/missing key in the group policy database and which one it is).

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,606 questions
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.
4,740 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fan Fan 15,291 Reputation points Microsoft Vendor
    2021-04-07T03:33:40.667+00:00

    Hi,

    Since you can get the gpresult by command: gpresult /h report.html on a machine (for a computer configuration, you need to runt the cmd as administrator) , you can check the settings for the registry items under Computer configuration\Preferences\Registry in the report.

    Or here is a script to find the entries with no type, just for your reference:
    https://stevenwatsonuk.wordpress.com/2016/10/03/group-policy-modelling-the-given-key-was-not-present-in-the-dictionary/(third-party link)

    This response contains a third-party link. We provide this link for easy reference. Microsoft cannot guarantee the validity of any information and content in this link.

    Best Regards,