how to update asset value from script
Hi,
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.
thanks.
Answers (1)
Top Answer
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
Comments:
-
I am not sure where to begin with. First of all thanks for above help. however I don't know how to do many things from what mentioned above. Like how to create inventory rule and shellcommandtextreturn, or how to create ticket rules.
thanks anyway. I see this task is above my IQ
:( - jencam 5 years ago-
Jencam, we are always happy to setup a call and talk you through the basics, as well as get you started, just reach out if when you are ready to make a start - Hobbsy 5 years ago