How to use the WIN32_MassDeploy WMI Class to target devices
The Win32_MassDeploy WMI class can be used to target devices in specific departments or pilot systems. This is especially useful for Group Policy targeting.
Properties
Name: ReleaseChannel
Type: string
Registry path (32-bit): HKEY_LOCAL_MACHINE\SOFTWARE\MassDeploy|ReleaseChannel
This value is often set to “Pilot” while setting up a computer with an “IT” build, but it can also be set manually, or automatically with Group Policy.
Name: TargetConfig
Type: string
Registry path (32-bit): HKEY_LOCAL_MACHINE\SOFTWARE\MassDeploy|TargetConfig
By default, this value will match the build option chosen while setting up a device. e.g. If a PC was set up with an “Accounting” build, the TargetConfig value will be “Accounting” without the quotes.
Installation
The Win32_MassDeploy WMI class is automatically installed by the MassDeploy System Builder, but you can install it manually by running your “MassDeploy Windows Config” package.
Example Group Policy WMI Filters
In the Group Policy Management console, under WMI Filters, create a new filter called “IT Systems“. Add the following query:
SELECT * FROM Win32_MassDeploy WHERE TargetConfig = “IT” |
In the Group Policy Management console, under WMI Filters, create a new filter called “Pilot Systems“. Add the following query:
SELECT * FROM Win32_MassDeploy WHERE ReleaseChannel = “Pilot” |
Automatically Define Pilot Systems in Group Policy
You can use Group Policy Preferences to automatically define pilot systems, based on where your pilot users log on.
- Open the Group Policy Management console
- Create a new GPO called “Pilot system Targeting”
- Edit the GPO and browse to: User Configuration\Preferences\Windows Settings\Registry
- Create a New Registry Item with the following values:
- Action: Update
- Hive: HKEY_LOCAL_MACHINE
- Key Path: SOFTWARE\WOW6432Node\MassDeploy
- Value name: ReleaseChannel
- Value type: REG_SZ
- Value data: Pilot
- Under the Common tab, enable “Item-level targeting”
- Press the “Targeting…” button
- Create a new “WMI Query” item:
- Query: SELECT OSArchitecture FROM Win32_OperatingSystem WHERE OSArchitecture = “64-bit”
- Namespace: Root\cimv2
- Create a new “Security Group” item:
- Press the “…” button to find your “pilot users” group
- Select the “User in group” radio button
- Press OK, and OK again
- If you have any 32-bit systems, create another identical Registry Item with the Key Path:
SOFTWARE\MassDeploy, and
target OSArchitecture = “32-bit”
Automatically Define Pilot Systems in WSUS
You can use Group Policy to automatically sort computers into a WSUS “Pilot Systems” computer group, instead of manually updating the group each time a pilot user changes or rebuilds their computer.
- Open the Group Policy Management console
- Create a new GPO called “WSUS Pilot Systems”
- In the Scope tab, under WMI Filtering, select “Pilot Systems”
- Edit the GPO and browse to: Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Update
- Set the following values:
- Enable client-side targeting=Enabled
- Target group name for this computer=”Pilot Systems”
- Open the WSUS admin console
- Under <ServerName>\Computers\All Computers, add a computer group called “Pilot Systems”
- Under Options\Computers, where “you can specify how to assign computers to groups”, select “Use Group Policy or registry settings on computers”
Share This Story, Choose Your Platform!
Get Updates Right In Your Inbox
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.