I need a group policy to run on all servers that DO NOT have Remote Desktop Services installed.
I can easily find which servers that DO have Remote Desktop Services installed as follows:
select * from Win32_OperatingSystem WHERE ProductType="2" OR ProductType="3"
select * from Win32_ServerFeature WHERE ID = 18
shows that ServerFeature ID 18 = Remote Desktop Services)
the problem I have is that if I change the query to: select * from Win32_ServerFeature WHERE ID != 18 - then this will return true if any other feature is installed and I do not get the desired result.
can anyone help?