Bitlocker Keys import

I am working on a script that will pull the bitlocker recovery key for a computer into Altiris. The Script appears to get the information but it doesn't make it into Altiris. The Guids for the custom data class are correct. looking for ideas. Script posted below.

I'm sorry to say that I do not know VB Script. I do know Powershell though. The SMP has two samples, under Notification Server, to enable and disable the PowerShell execution policy. So you could create a job the first disabled the execution policy, runs a PowerShell Script, and then enables the default PowerShell execution policy. Or, if your organization has its own cert. store, you could sign the script yourself.

If I'm mistaken, I apologize, but it looks like you're trying to get the content of a file c:\keys.txt? If you can give me a little more detail, perhaps I can help you using PowerShell?

So I fixed the issue. it was in the .run line. it stalled waiting for cmd to exit. I also added a line to del the keys.txt file when it's done. I also tested it on computers with multiple drives. Code posed below: