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.