Tag Info

New answers tagged

2

I solved this as I was writing the question, and thought I'd share. I deceived myself when banging out the WMIC command and didn't think about the requirement for quoted values in the rather strict WQL syntax used here: SELECT * FROM Win32_OptionalFeature WHERE Caption = "Microsoft-Windows-Server-Gui-Shell-Package-DisplayName" AND InstallState = "2" ...


1

I just thought I'd chime in with a WMI Filter for this solution, so you can apply GPOs to Core 2012+ systems: SELECT * FROM Win32_OptionalFeature WHERE Caption = "Microsoft-Windows-Server-Gui-Shell-Package-DisplayName" AND InstallState = "2" To test this on the command line: WMIC PATH Win32_OptionalFeature WHERE "Caption = ...



Top 50 recent answers are included