WMI Filter for Server 2019 Core

Copper Contributor

I would like to filter some GPOs so that they do not apply to my 2019 core servers. I am coming up short on how to find that information via WMI. My research led me to this community and a similar post, but that does not address the specific need for server core vs gui.


I've reached the end of my patience today, so I thought that I'd reach out and see if anyone else might have a solution to this.

1 Reply

@thanatos8877 These queries should return False on Server Core
i'm not sure if they help filtering GPOs though

Select * from CIM_DataFile where Name='C:\\Windows\\explorer.exe'

Select * from Win32_OptionalFeature WHERE Name='Server-Gui-Mgmt'

Select * FROM Win32_ServerFeature WHERE Name='Server Graphical Shell'