Fleex255 / PolicyPlus

Local Group Policy Editor plus more, for all Windows editions
Creative Commons Attribution 4.0 International
1.5k stars 109 forks source link

Not all policies are listed. Discovered this while attempting to remove Copilot. #85

Closed Amariithynar closed 6 months ago

Amariithynar commented 10 months ago

The instructions for disabling copilot are as follows: Group Policy Editor > User Configuration > Administrative Templates > Windows Components > Windows Copilot > Turn off Windows Copilot

However, using PolicyPlus, there is no option for Administrative Templates. In the options that are available (and yes, I did re-acquire ADMX files) there is also no option for Windows Copilot.

This is not the first time I have noticed that not all policies are actually being listed, either, but previously it was not a major concern to me. This, however, is.

Fleex255 commented 10 months ago

Policy Plus currently only supports Administrative Templates, so the entire left tree is the contents of Administrative Templates - for example, Windows Components should be there at the top level.

Due to the split between Windows 10 and Windows 11 policy definitions, there currently isn't a way to get all policies for every OS version (issue #55). This sounds like a Windows 11-specific policy, so you can try downloading and unpacking the latest Windows 11 ADMX files, then using File | Open ADMX Folder to load them into Policy Plus.

ericvenneker commented 10 months ago

Windows 11 23H2 policy definitions can be downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=105667

The policy should definitely be in there:

image

Amariithynar commented 10 months ago

Windows 11 23H2 policy definitions can be downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=105667

The policy should definitely be in there:

image

Unfortunately as you can see, even using "Acquire ADMX Files" and then following it up by downloading the administrative template MSI and installing them all to the same PolicyDefinitions folder within Windows then refreshing PolicyPlus to use said folder, even after a restart: it does not, for me. Maybe there's something else that I am just not seeing? image

Fleex255 commented 10 months ago

This policy is defined in WindowsCopilot.admx. Please check if that file exists directly inside your PolicyDefinitions folder. (You can also check View | Loaded ADMX Files to see if Policy Plus has detected it.) If it's not there, try extracting the 23H2 policy definitions again and use File | Open ADMX Folder to load them.

Amariithynar commented 10 months ago

This policy is defined in WindowsCopilot.admx. Please check if that file exists directly inside your PolicyDefinitions folder. (You can also check View | Loaded ADMX Files to see if Policy Plus has detected it.) If it's not there, try extracting the 23H2 policy definitions again and use File | Open ADMX Folder to load them.

Mhm, and that's the problem. That file does not exist and does not install no matter how many times I use the MSI to install the latest 23H2 policy definitions or run PolicyPlus' internal ADMX acquire function.

Amariithynar commented 10 months ago

This policy is defined in WindowsCopilot.admx. Please check if that file exists directly inside your PolicyDefinitions folder. (You can also check View | Loaded ADMX Files to see if Policy Plus has detected it.) If it's not there, try extracting the 23H2 policy definitions again and use File | Open ADMX Folder to load them.

Okay then, so the issue isn't the MSI not working; it is. The problem is that it's not installing to the PolicyDefinition folder and there is no documentation anywhere about this difference except this ONE page on Microsoft's Learn domain; https://learn.microsoft.com/en-US/troubleshoot/windows-client/group-policy/create-and-manage-central-store that offhandedly notes the locations of ADMX files will be,

"The C:\Windows\PolicyDefinitions folder on a Windows 8.1-based or Windows 10-based client computer" and "The C:\Program Files (x86)\Microsoft Group Policy\\PolicyDefinitions folder, if you have downloaded any of the Administrative Templates separately from the links above."

So, yeah. Thank goodness I checked the download page's "related references" section and decided to check out all the links, but esp. "How to create and manage the Central Store for Group Policy Administrative Templates in Windows" which had me hoping maybe it'd have some information, and it did.