Group Policy Preferences: How to determine if the target is a Windows Server OS or Workstation OS.
I try to minimize my reliance on Group Policy Preferences if possible, and even more so with it's Item-Level Targeting feature. It usually has a negative impact on logon performance, a key metric for any VDI engagement.
A well designed OU structure is probably the best way to avoid having to use Item-Level Targeting.
As a best practice, WMI queries must be reviled. They can a significantly negative impact on the logon experience.
Use it to query the following registry value:
A well designed OU structure is probably the best way to avoid having to use Item-Level Targeting.
As a best practice, WMI queries must be reviled. They can a significantly negative impact on the logon experience.
If you want to create a condition for your Group Policy Preference and base it on whether the target system is a Workstation OS or Server OS, you'll find a number of articles instructing you to use WMI queries. Instead, use the following:
The Regisry Match |
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Installation Type
There are two possible values:
1. Server = Server-based Operating System
2. Client = Workstation-based Operating System
No comments