MEMCM - SDK or Unmanaged Method to Access Full TSXML (Including Secrets)
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