"Error: Unable to parse this mif: syntax error on line 309, token 'ID'"

Goto the SMS Home Page

 
I have a VB script I wrote to run a hardware inventory with WMI and write the information into a MIF file. At the end of the script, it runs the MIF file it wrote through MIFCheck and I get the following error:

Error: Unable to parse this mif: syntax error on line 309, token 'ID'

I’ve looked at that line in the MIF and can’t see what's wrong. There are 8 lines before it in the MIF file that are identical and don't cause any errors. Here’s a snippet of the lines from the MIF:

Start Group
Name = "CDROM1"
Class = "KBHINV|CDROM1|1.0"
ID = 9 ' - this is the line where I get the error
Start Attribute

Contributed By: Teena Blome and Mark Nunn
Your problem is the '
ID' field needs to come before the 'Class' field.  Instead of this:

Start Group
Name = "CDROM1"
Class = "KBHINV|CDROM1|1.0"
ID = 9
Start Attribute

You need to have this:

Start Group
Name = "CDROM1"
ID = 9
Class = "KBHINV|CDROM1|1.0"
Start Attribute

© FAQShop.com 2003 - 2008

Goto the SMS Home Page

Email the Author