Compare files and move cluster resource

Hi Guys!

I need a help or guidance to create this script.

I need to compare two excel files. This excel files contains clusters groups ( before and after).

If the new excel file is different from the old, i need to move the resources like the old one.

Any suggestions?

Thanks!

This is my start script to collect the initial status from cluster group and the owner.


Import-Module failoverclusters
$clusters = Get-Content C:\list\.txt

foreach($cluster in $clusters)
{
$file = $cluster + ".txt"
Get-ClusterGroup -Cluster $cluster | Tee-Object C:\clusters\$file
}