question

NathanZiehnert-1621 avatar image
0 Votes"
NathanZiehnert-1621 asked saldana-msft edited

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 @KerwinMedina-5199 @KerwinMedina-9007

dotnet-csharpc++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers