Apply Group policy to Windows XP and Windows Vista only
Had an issue at work today on my work network where I wanted to have a group policy object apply only when they login to their desktops and not member servers.
SELECT * FROM Win32_OperatingSystem WHERE Caption LIKE '%Windows Vista%'OR Caption LIKE '%Windows XP%'
By applying the above WMI filter to the group policy you will restrict the policy to Windows XP and Windows Vista only.
Another way to accomplish this is to use the ProductType field, where 1=workstation 2=dc 3=server
So the WMI query “Workstations Only” would be:
SELECT * from Win32_OperatingSystem where ProductType = 1
Hi Steve,
Thanks for that. I didn’t even realize that field existed.
Dave