IT Management Suite

  • 1.  Custom Inventory - Data Class: How Not overwrite the information?

    Posted Oct 01, 2024 04:11 AM
    Hello,
    I'm trying to capture basic information from my computers in order to have a history on my inventory with that information.
    Lets Imagine I'm trying to catch up to the IP address of my computers have every day.
    I have created a Powershell script to capture it with the following fields:
    • computername+timestamp,
    • IP_Address,
    • Update_On.

    The PS script works perfectly and gathers the information I need. The task is executed within a policy everyday.

    I have alos created a data class to store the information that I'm capturing, but the problem is the information is overwritten every day and I dont know how to specify that everyday I should have a new line per computer, otherwise I won't have a history of the information.
    In my PS script, as I said before, I'm creating a variable that is the computername+timestamp in order to have a unique computername everyday, and this value is added in the data class, so every line should be different.
    Could someone give a clue about how to manage this? 
    Thanks in advance for your help.


  • 2.  RE: Custom Inventory - Data Class: How Not overwrite the information?

    Broadcom Employee
    Posted Oct 02, 2024 12:42 PM

    This question was answered in the ITMS Community thread > Here