How do I modify SCM 2007 SMS_Def.MOF File to Inventory Bitlocker Status

-I May need a little help in playing with this file in order to get it to inventory bitlocker compliance data. I don’t really know to much about this topic so possibly our collective efforts can figure out how to make this work
1)How to Extend Your Hardware Inventory Using the SMS_DEF.MOF File:
http://blogs.technet.com/smsandmom/archive/2007/08/30/how-to-extend-your-hardware-inventory-using-the-sms-def-mof-file.aspx 

2)BitLocker Information via Hardware Inventory:
http://www.myitforum.com/absolutenm/templates/Articles.aspx?articleid=15643&zoneid=89
 I have run the BL Script on my Client  test computers as indicated in the Second post and also pasted the MOF entry from the 2nd post but every time I save the MOF File it is over written by the old version wipeing out any of my changes. Possibly a syntax error? This is my first experiance with MOF File editing any help would be appreciated
 -This is the edit I am trying to paste at the bottom of the MOF File:
Our Centeral Site claimes they are not forcing a MOF  File to us so we are free to change as we see fit:
//  <:[-<>>>>>>>>>>>Start>>-BitLocker-<<Start<<<<<<<<<>-]:>
//`'`*._.*`'`*-
//  BitLocker Reporting Class, for use with Script
//`'`*._.*`'`*-
#pragma namespace(\\\\.\\root\\cimv2\\SMS)
#pragma deleteclass("SCCM_BitLocker",NOFAIL)

[ SMS_Report     (TRUE),
  SMS_Group_Name ("SCCM_BitLocker"),
  SMS_Class_ID   ("CUSTOM|SCCM_BitLocker|1.0") ]
class SCCM_BitLocker : SMS_Class_Template
{
  [SMS_Report (TRUE), key ] string Drive;
  [SMS_Report (TRUE)] string DriveLabel;
  [SMS_Report (TRUE)] string Size;
  [SMS_Report (TRUE)] string BitLocker_Version;
  [SMS_Report (TRUE)] string Conversion_Status;
  [SMS_Report (TRUE)] string Percentage_Encrypted;
  [SMS_Report (TRUE)] string Encryption_Method;
  [SMS_Report (TRUE)] string Protection_Status;
  [SMS_Report (TRUE)] string Lock_Status;
  [SMS_Report (TRUE)] string Identification_Field;
  [SMS_Report (TRUE)] string Key_Protectors;
  [SMS_Report (TRUE)] string Automatic_Unlock;
  [SMS_Report (TRUE)] string ScriptLastRan;
};
//  <:[-<>>>>>>>>>>>END>>-BitLocker-<<END<<<<<<<<<>-]:>


 


abyss0208Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

merowingerCommented:
yes if the file is getting overwritten, there's a syntax error.
Please just try the below listed.

Also note the following article:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Systems_Management_Server/Q_25458540.html
#pragma namespace(\\\\.\\root\\cimv2\\SMS)
#pragma deleteclass("SCCM_BitLocker",NOFAIL)

[ SMS_Report     (TRUE),
  SMS_Group_Name ("SCCM_BitLocker"),
  SMS_Class_ID   ("CUSTOM|SCCM_BitLocker|1.0") ]
class SCCM_BitLocker : SMS_Class_Template
{
  [SMS_Report (TRUE), key ] string Drive;
  [SMS_Report (TRUE)] string DriveLabel;
  [SMS_Report (TRUE)] string Size;
  [SMS_Report (TRUE)] string BitLocker_Version;
  [SMS_Report (TRUE)] string Conversion_Status;
  [SMS_Report (TRUE)] string Percentage_Encrypted;
  [SMS_Report (TRUE)] string Encryption_Method;
  [SMS_Report (TRUE)] string Protection_Status;
  [SMS_Report (TRUE)] string Lock_Status;
  [SMS_Report (TRUE)] string Identification_Field;
  [SMS_Report (TRUE)] string Key_Protectors;
  [SMS_Report (TRUE)] string Automatic_Unlock;
  [SMS_Report (TRUE)] string ScriptLastRan;
};

Open in new window

abyss0208Author Commented:
MS Inventory Data Loader failed to compile C:\Program Files\Microsoft Configuration Manager\inboxes\clifiles.src\hinv\sms_def.mof.  The failing MOF file has been moved to C:\Program Files\Microsoft Configuration Manager\data\hinvarchive\sms_def.mof.bad.bak, and the last successfully compiled version has been restored.

Possible cause: The file has been edited with changes that are not valid for MOF file syntax.
Solution:  Review the last set of changes to the file for adherence to MOF file syntax.
abyss0208Author Commented:
So I understand. I paste the entry as the very, VERY last line in the SMS_DEF.MOF? Still reading as a syntax error
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

merowingerCommented:
abyss0208Author Commented:
Looks Like I got this to work. http://www.myitforum.com/forums/m191450.aspx 

but do I still need to advertise the Script as noted in this post: ?http://www.myitforum.com/absolutenm/templates/Articles.aspx?articleid=15643&zoneid=89
 
Now that I have added this information in to the MOF File how do I poll SCCM for the Data in some sort of NICE -TO-Read format?  Query, Report,, Ect
 
merowingerCommented:
No i don't think so, as the WMI classes:
Win32_TPM
Win32_EncryptableVolume
are default windows wmi classes

If the file was accepted it will be replicated to all clients when they're executing the hardware inventory.
The inventory is sended to the Management Point -> Site Server -> Site Database.
From there you can first check the data on the client object in SCCM -> Resource Explorer.
Also you can create queries, collections and repoorts based on that data
abyss0208Author Commented:
I guess We'll See if this work once hardware inventory kickes off. On the post you gave me it didnt indicate if the user had success with pulling in the data he was going after with the MOF edit. it stated that he abandond hos effort. Ill post back to let you know how this worked out
abyss0208Author Commented:
The Options you showed me yesterday did not appear anything in the Resource Explorer. I made the following modification :

//------------------------------------------------
// Bit Locker
//------------------------------------------------

[SMS_Report(TRUE),
SMS_Group_Name("Bitlocker Info"),
SMS_Class_ID("BITLOCKER"),
namespace ("\\\\\\\\.\\\\root\\\\CIMv2\\\\Security\\\\MicrosoftVolumeEncryption")]
class Win32_EncryptableVolume : SMS_Class_Template
{
    [SMS_Report(TRUE), key]
    string DeviceID;  
 
    [SMS_Report(TRUE)]
    string PersistentVolumeID;
 
    [SMS_Report(TRUE)]
    string Driveletter;


};

This allows information to appear in the Resource explorer. the issue is that every suggested modification I get polls less and less information then I was originally going after. Does any one have an answer to apply my original goal.
2)BitLocker Information via Hardware Inventory:
http://www.myitforum.com/absolutenm/templates/Articles.aspx?articleid=15643&zoneid=89

Can someone test this and provide me with information on how they got it working.  I keep running in to syntax errors

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
merowingerCommented:
Any update?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.