GPO - wmi filter - set reg key

Meyerhofer Manuela 1 Reputation point
2022-03-14T09:05:33.943+00:00

Hello,

I need a GPO that checks which Office version is installed on the client and sets a reg key based on the installed version.

For example: If Office 2019 is installed on the client the regkey XY should be set . But if O365 is installed, the regkey AB should be set.

How can I do that?

BR

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2022-03-14T11:53:02.333+00:00

    Hi,

    You can create new group policy preference to create the regkey and apply the following WMI filter:

    Select * from Win32Reg_AddRemovePrograms where DisplayName like '%office%2019%'
    

    You can create one GPO and apply many WMI filter on Item Targeting level:

    faq-4-rev-1-img-1.jpg

    faq-4-rev-1-img-1.jpg

    Please don't forget to mark helpful reply as answer

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.