MEMCM - SDK or Unmanaged Method to Access Full TSXML (Including Secrets)

Nathan Ziehnert 1 Reputation point MVP
2021-09-07T03:38:25.647+00:00

Title pretty much explains it. When you view an instance of SMS_TaskSequencePackage and grab the lazy property "Sequence" the XML is returned with secrets stripped (e.g. hidden variables, passwords for "run as" accounts), when you run the GetSequence method on SMS_TaskSequencePackage the resulting SMS_TaskSequence_* step objects also have stripped that data. Same calling from C# and PowerShell. Obviously the Provider is stripping secrets.

Would like to know if there is a supported way to extract the full TS XML, preferably using the provider or managed code (i.e. I don't want to boot a machine to the TS and extract the XML and associated TSVars). Unmanaged (C++ Interop) is fine by me too, but that likely enters unsupported territory. I'm guessing baseobj.dll contains the exports that I'd need to call with Interop, but none of it is documented - I suppose I could dig through with DependencyWalker, but was hoping someone has explored this before.

I think this is possibly your territory @Kerwin Medina @Kerwin Medina

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,204 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,519 questions
0 comments No comments
{count} votes