Header Ads

Header ADS

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.

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
Use it to query the following registry value:
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

Powered by Blogger.