I've been working on a script that will fetch information from computers within a domain and also manage it to add new Rows into the excel sheets if the script has found a new computer within the domain. What I would like to do is to be able removing a Row or Rows if a computer does not longer exist in the domain. For example
As I mentioned I've already made the script so it can Add new found computers based on if-statement that looks for indifference in name and adds a new Row for the newfound computer. Doing it reverse has been troublesome.
EXCEL AD-Computers
Comp10Comp10 = True. Do Nothing
Comp20Comp20= True. Do Nothing
Comp29Comp30 = False. Do Something. Remove Excel Row
Comp30Comp31= Still False obviously.
Anyone has some sort of idea where about I should start trying to do or have a solution to this problem?
I hope I've been clear, if not, tell me so and I'll try to explain myself again.