# Compare files and move cluster resource

**URL:** <https://forums.powershell.org/t/compare-files-and-move-cluster-resource/15612>\
**Category:** PowerShell Help\
**Created:** [February 10, 2021, 4:59am UTC](https://forums.powershell.org/t/compare-files-and-move-cluster-resource/15612 "2021-02-10T04:59:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [February 10, 2021, 4:59am UTC](https://forums.powershell.org/t/compare-files-and-move-cluster-resource/15612/1 "2021-02-10T04:59:42Z")

</div>

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.

```auto

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
}

```

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:27pm UTC](https://forums.powershell.org/t/compare-files-and-move-cluster-resource/15612/2 "2024-05-16T20:27:54Z")

</div>

Closed on May 16, 2024, 8:27pm UTC


