HTA to manually input Lease Info - Hardware Inventory

A few weeks ago I assisted someone in modifying their .hta to gather Lease Info.  Their original was excellently written; but it was trying to write out the gathered data as a noidmif and they were having problems with the formatting.  Since I'm a wmi/edit-the-.mof person, I changed that part of the .hta to instead write the data to wmi.

In the attached .zip is 'GenericLeaseInfo.txt'  Rename it to .hta.  The .hta will create wmi classes and instances, so I recommend running the .hta on a test computer; and (if you have one) a test lab before running the .hta in production.

A couple notes; the .hta will create all the classes and instances needed in WMI; so there is no need to mofcomp anything on the client.  Within the text file near the top within a comment, is the snippet to be added to your mini.mof or sms_def.mof to enable reporting.

As written, the form has inputs for 6 string fields:
AssetTag#
Location
Assigned To
Lease End Date
Monitor Serial Number
Department

Hopefully, though, it should be easy enough to modify to change the fields to be anything. Of course... just because you have this form for input doesn't mean your techs will use it!  I'm sure that'll still be the failure point--that pesky human element!

GenericLeaseInfo.Zip

Published Wednesday, September 05, 2007 6:56 PM by skissinger

Comments

# re: HTA to manually input Lease Info - Hardware Inventory

Very cool! I started to do something like this at my last job and never finished it. This is definately a better method than the NOIDMIF route.

Wednesday, September 05, 2007 9:48 PM by jgilbert