Windows Server 2012 R2 Domain with Windows 10 Pro clients.
I'm poking around in GPO under
User Configuration -> Policies -> Administrative Templates -> Windows Components -> Microsoft Management Console -> Restricted/Permitted snap-ins
Looks like the perfect place for it to be, but it isn't
Can I add it manually anyway?
You can edit administrative template file
"C:\Windows\PolicyDefinitions\MMCSnapins.admx"
and see what is changed if you enable any of the settings in that GPO section. It'll show you that it's using the ID of the snap-in and the valueRestrict_Run
with a value of1
.Now you know your snap-in's ID, you need to use it in GPO. There are couple of ways to do that.
You can edit the administrative template file (
"C:\Windows\PolicyDefinitions\MMCSnapins.admx"
) you used before and add a new policy section with Hyper-V snap-in's ID, or, you can use admx file to see what is modified in registry when you change that Group Policy setting and deploy correct settings with GP preferences.Instead, I just changed one of the settings using gpedit.msc , opened
"C:\Windows\System32\GroupPolicy\User\Registry.pol"
in notepad to see what it changed, opened regedit and added the new key with snap-in's ID and value.After testing to see if it worked, you can export it and deploy it using GP preferences.