XML Query on Application Dependencies

Hey Guys how are you?

I'm trying to retrieve some information that are inside an XML file on sccm database.

I need a report to show me

Application Name - Install Command Line - Uninstall Commando Line - Dependencies

I was able to got everything but the dependencies, (because some times the app can have more than one, and would like to show them on the same Colum, but only the Program Name dependent, no all the XML Element (how is showing now)

Here's my query

;WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest' )
SELECT
SDMPackageDigest.value('(/AppMgmtDigest/DeploymentType/Title)[1]', 'nvarchar(MAX)') [Title],
SDMPackageDigest.query('//Dependencies') [Dependencies],
SDMPackageDigest.value('(/AppMgmtDigest/DeploymentType/Installer/InstallAction/Args/Arg)[1]', 'nvarchar(max)') [Install],
SDMPackageDigest.value('(/AppMgmtDigest/DeploymentType/Installer/UninstallAction/Args/Arg)[1]', 'nvarchar(MAX)') [Uninstall]

FROM v_ConfigurationItems

WHERE CITYPE_ID = 21 and islatest = 1
Order by Title

TY Guys

January 29th, 2014 9:16pm

Anyone?? Thanks
Free Windows Admin Tool Kit Click here and download it now
January 30th, 2014 7:33pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics