I am currently deploying some files through GPP to a folder under program files. I now have to differ between a 64bits and 32bits os. What is the easy way to filter out what computer to target with the targeting editor?
- Wmi: SELECT * FROM Win32_Processor WHERE AddressWidth = 32
- environment: programfilesx86
- registry: ???
- os selection in the targeting editor
I am currently looking at using a WMI select, but it seems a but it seems overkill. What method is the best?
In my experience if there is an issue with WMI on the system it can not run the query. If you are using Windows 2008 preferences then I would use a environment variable for the Group Policy item-level targeting filter.
For x64 the environment variable
%Processor_Architecture%
isAMD64
For x86 the environment variable
%Processor_Architecture%
isx86
Environment variables are much more stable than WMI
The WMI Filter method is the best one to use because it's defined seperately of the GPO, natively administered in the GPMC, and can be linked to one or more GPOs as required.
Target 32-bit OS's with:
Target 64-bit OS's with: