how to update asset value from script
I need to update a field in asset from the computers. So, my plan is to create a script, run a VB or powershell to update the field in asset.
Please let me know what you think or if you have any ideas.
let me explain. I have a software installed on about 1000 computers. The software keeps it's license/account number in a text file on the local computer hdd.
I need to read the content of this text file and update it's asset field on kace. or just create a report from it.
Answer Chosen by the Author
What you can do is create a Custom Inventory Rule usingShellCommandTextReturn(cmd /c type c:\TEMP\testfile.txt) < Replacethe part in bold with your path & file name. This will then display the content of the text file in your inventory
You could then create a ticket rule which copies the value from your CustomInventory Rule data location to the Asset Field data location required
You can find your custom inventory fields in the MACHINE_CUSTOM_INVENTORY Table
And you can then copy STR_FIELD_VALUE to your Asset Type Field as required.
Just be aware each time you create an Asset Type you will need to find the unique field within the asset data table