Configuring the custom inventory sample script for Windows
Symantec recommends that you clone the existing custom inventory script task sample, and then configure it according to your needs. The sample script for Windows already contains the required code for a WMI query. You only need to add your own logic to gather the necessary data and to populate the attribute variables in the script.
Every time you create or edit an existing custom data class, a new GUID is assigned to this data class. You must manually update the script with the new GUID, if it refers to the older GUID for the same custom data class.