none
WMI Query to fetch existing detection method of an application

    Question

  • Hi,

    Can you any please guide as to how to fetch the detection method of an existing application in SCCM. I am aware of the powershell commandlet but as that requires installation of configuration Manager console, I would like to know how to do it using WMI.

    Monday, June 25, 2018 6:47 AM

All replies

  • Here is a good starting point, you will need to modify the script to show all detection method types.

    https://timmyit.com/2016/12/12/sccm-find-all-powershell-detection-scripts-for-applications-in-your-environment/


    Dan Padgett | Blog: http://execmgr.net | Twitter: @danjpadgett

    Monday, June 25, 2018 11:34 AM
  • Thank You for your reply!

    I did come across this link but I see that it also leverage the CM modules. Is there a away I can fetch the existing detection method info from the SCCM DB for a particular application via WQL/SQL query without having to leverage the modules?

    BR,

    Deb.


    • Edited by DS2885 Monday, June 25, 2018 12:03 PM
    Monday, June 25, 2018 12:03 PM
  • It only relies on the ConfigMgr assemblies to deserialize the XML and not to access the information; deserialization can be done in other ways and natively PowerShell handles XML quite well.

    Jason | https://home.configmgrftw.com | @jasonsandys

    Monday, June 25, 2018 12:28 PM
    Moderator