WMI Filter for Server 2019 Core

%3CLINGO-SUB%20id%3D%22lingo-sub-1502190%22%20slang%3D%22en-US%22%3EWMI%20Filter%20for%20Server%202019%20Core%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1502190%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20like%20to%20filter%20some%20GPOs%20so%20that%20they%20do%20not%20apply%20to%20my%202019%20core%20servers.%20I%20am%20coming%20up%20short%20on%20how%20to%20find%20that%20information%20via%20WMI.%20My%20research%20led%20me%20to%20this%20community%20and%20a%20similar%20post%2C%20but%20that%20does%20not%20address%20the%20specific%20need%20for%20server%20core%20vs%20gui.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20reached%20the%20end%20of%20my%20patience%20today%2C%20so%20I%20thought%20that%20I'd%20reach%20out%20and%20see%20if%20anyone%20else%20might%20have%20a%20solution%20to%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1502190%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

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
Highlighted

@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'