Gather Bitlocker Encryption Status - Powershell Custom Inventory

With VBScript losing favor over Powershell, and migrating to Windows 7, I felt that it was time to start migrating our scripts to Powershell exclusively and move off VBScript wherever we could. The detection of Bitlocker was a perfect target for script rewriting. This .ps1 script will detect if the C:\ drive is Bitlocker encrypted, and will send that information as a custom inventory into Altiris. Here are the requirements:

While Bitlocker detection is nice, what was really the tricky part was getting a custom inventory to use Powershell as its language instead of vbscript. So even if you don't care about Bitlocker, this Powershell script is a good sample script for those wanting to move off VBscript for their custom inventories. Make sure to rename the file .ps1 extension after downloading.