none
create WMI filter (to use with gpo) for detection office 32 or 64 bit version

    Question

  • Hello,

    I have a offce addin that i want to deploy with group policy,

    I have 2 MSI, one for office 32 bit (2007 and 2010) and one for 64bit office (2007 and 2010)

    So i need 1 wmi filter that wil be true if office 2007 32 bit OR office 2010 32 is instald,

    and 1 wmi filter that wil be true if office 2007 64 bit OR office 2010 64 bit is instald.

    I never before created a wmi filter ! the ones dat i use have i found on the internet....

    Clould somewant please help me ?

    i need the wmi query string .... of if you already have this wmi filter can get a backup of it so ik can import it in my gpmc ?

    Thank You , verry much

    Mvg,

    Yordi Mahieu

    ps, sorry for my english (native dutch speaking)


    • Edited by dr-know Thursday, June 7, 2012 3:15 PM
    Thursday, June 7, 2012 3:14 PM

Answers

  • Hi,

    i have mange to get a working wmi query. (i have 2 wmi's, 1 for eache software deployment office add-in)

    with these querys :

    SELECT * FROM Win32_Product WHERE (Caption LIKE \"Microsoft Office %2007%\") OR  (Caption LIKE \"Microsoft Office %2010%\") //look if office 2007 or 2010 is instald.

    select * from Win32_Service where Name = \"ose64\""  ////for office 64bit

    select * from Win32_Service where Name = \"ose\""  //// for office 32 bit

    Select * from Win32_OperatingSystem Where Version Like \"6.1.760%\" and ProductType=1"   ///aded check for windows 7 cliënt pc's

    • Marked as answer by dr-know Tuesday, June 19, 2012 9:19 AM
    Tuesday, June 19, 2012 9:19 AM

All replies

  • Hi dr-know,

    Sorry for later response.

    Would you please take a look at http://technet.microsoft.com/en-us/library/cc947846(v=ws.10).aspx I think this might help you.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Monday, June 18, 2012 1:51 AM
    Moderator
  • Hi Tom,

    I have read your link, I already now HOW to work with wmi .

    I need the excact WMI QUERY .... i do not have experiense of creating a wmi query....

    The query to detect if office 2007 / 2010 32 bit is installed,

    and 1 query to detect if office 2007 / 2010 64 bit is installed...

    Thanks,

    dr-know

    Monday, June 18, 2012 8:38 AM
  • Hi,

    Office 2007 is 32bit only.

    As how to detect Office 2010 bitness, the idea is: assuming Outlook 2010 is installed along with Office suite, you read a specific registry key, but not to use WMI query. 

    Outlook 2010 will write below key/value:

    • Registry path:    HKEY_LOCAL_MACHINE\Software\Microsoft\Office\14.0\Outlook
    • Registry key: Bitness
    • Value: either x86 or x64

    And the bitness of Outlook is the bitness of Office 2010 suite.

    thanks,


    Forrest Guo | MSDN Community Support | Feedback to manager

    Tuesday, June 19, 2012 8:51 AM
    Moderator
  • Hi,

    i have mange to get a working wmi query. (i have 2 wmi's, 1 for eache software deployment office add-in)

    with these querys :

    SELECT * FROM Win32_Product WHERE (Caption LIKE \"Microsoft Office %2007%\") OR  (Caption LIKE \"Microsoft Office %2010%\") //look if office 2007 or 2010 is instald.

    select * from Win32_Service where Name = \"ose64\""  ////for office 64bit

    select * from Win32_Service where Name = \"ose\""  //// for office 32 bit

    Select * from Win32_OperatingSystem Where Version Like \"6.1.760%\" and ProductType=1"   ///aded check for windows 7 cliënt pc's

    • Marked as answer by dr-know Tuesday, June 19, 2012 9:19 AM
    Tuesday, June 19, 2012 9:19 AM
  • Nice post.  thanks.

    Forrest Guo | MSDN Community Support | Feedback to manager

    Tuesday, June 19, 2012 9:31 AM
    Moderator
  • You know it's not a good thing to query that class (win32_product) on a large number of computers, the event logs fill up with Application Log entries from MSI Installer which reconfigures each app.



    • Edited by KMH.1 Friday, January 23, 2015 11:59 AM
    Tuesday, June 18, 2013 11:39 AM