I used the below script to export a csv with computer names and object id’s from azure
There are a number of duplicate files that I would like to remove.
My csv looks like so
name, object id
I would like to remove these duplicates. I want to remove both the instances so when I output the csv we would only see comp2 and comp3. I have seen plenty scripts to remove just the duplicate but I want to remove any and all instances of duplicates.
Could someone assist with the coding for this I am fairly new and can’t find info online.
Get-MsolDevice -All -LogonTimeBefore ‘may, 2019 12:00:00 AM’ | select-object -Property ObjectID, DisplayName | export-csv “C:\temp\test\List.csv” -NoTypeInformation