Quantcast
Channel: Configuration Manager 2007 Operating System Deployment forum
Viewing all articles
Browse latest Browse all 1063

Getting XML from a Tasksequence via SQL query instead of using WMI

$
0
0

Hi,

I`ve got a question about tasksequences in SCCM 2007. I need to generate a report, which shows the softwarepackages of a tasksequence divided per group. 

Until now I was only able to generate such a report with a WMI-query by using the class "SMS_TaskSequencePackage" and the method "GetSequence" to get the XML of the tasksequence.

However it is customer requirement to get the data with an SQL query directly from the database instead of using WMI.

The respective column I found in the SCCM-database within the table "dbo.TS_TaskSequence". Its name is "Sequence". Unfortunately the XML is not saved in cleartext within the database, but in the datatype "image". The first characters of the column are always "0x3839313330303030" and there are only numerical values.

Now my question:

How can I convert the values of this column into cleartext, so that the hiding XML becomes viewable? I searched a long time for a solution, but I assume it isnot documented. Could you maybe help with that issue?

Many Thanks!

Alex E.

(I posted some screenshots so you can understand what exactly I mean)

(Powershell-Script to get the sequence per WMI)

 

(respective table and column in the database)



Viewing all articles
Browse latest Browse all 1063

Trending Articles



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