GPO detect firefox version

Iltexanomontano 1 Reputation point
2022-02-23T12:38:17.773+00:00

Can I filter Windows 10 client which have over 78 version ? I need to apply policy and to filter clients with WMI filter.
Thanks

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,405 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,336 Reputation points
    2022-02-24T14:41:30.983+00:00

    Hello @Iltexanomontano

    Yes, it requires a bit of syntax experience but I will explain it here.

    You can use the WMI Operators, to specify wildcards or ranges of numbers, as seen in: https://learn.microsoft.com/en-us/windows/win32/wmisdk/like-operator

    Example:

    SELECT DisplayName, Version
    FROM Win32Reg_AddRemovePrograms
    WHERE (DisplayName LIKE '%Firefox%')
    AND ((Version LIKE '7[8-9][0-9].[0-9]%') OR (Version LIKE '8[0-9].[0-9]%')) OR (Version LIKE '9[0-9].[0-9]%'))

    In the case of (Version LIKE '7[8-9].[0-9]%') it does select versions 78 or 79 subversion .00 until 0.99. Another example is the (Version LIKE '9[0-9].[0-9]%')) which selects versions 90 - 99 with subversion .00 until 99

    Hope this helps with your query,

    --
    --If the reply is helpful,please Upvote and Accept as answer--

    0 comments No comments

  2. Iltexanomontano 1 Reputation point
    2022-02-25T10:17:30.597+00:00

    Yes, it requires a bit of syntax experience but I will explain it here.

    You can use the WMI Operators

    I don't understand if Win32Reg_AddRemovePrograms class is accessible in every computer (Windows 7 / 10). I'm not able to find this class in root/CIMv2 namespace.
    I can run classic wmi script e.g. to detect OS type but I need to know if there are wmi requirements to detect firefox info.
    I have to install some modules to every pc or It's necessary on domain controller to have "Win32Reg_AddRemovePrograms" ?

    0 comments No comments

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.