Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

XML Query on Application Dependencies

$
0
0

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


MCTS - SCCM


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>