# Get-Clustergroup help

**URL:** <https://forums.powershell.org/t/get-clustergroup-help/17162>\
**Category:** PowerShell Help\
**Created:** [July 26, 2021, 1:55am UTC](https://forums.powershell.org/t/get-clustergroup-help/17162 "2021-07-26T01:55:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajas\_asuret21](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@rajas\_asuret21](https://forums.powershell.org/u/rajas_asuret21)\
**Post date:** [July 26, 2021, 1:55am UTC](https://forums.powershell.org/t/get-clustergroup-help/17162/1 "2021-07-26T01:55:07Z")

</div>

Hey Guys,

I would like to develop a powershell script which will find the ownernode of HA and reboot the other node. Can you guys help me here.

## Listener name:TEST00.example.com NODE1: [TEST01.example.com](http://TEST01.example.com) Node2: [TEST02.example.com](http://TEST02.example.com) HA name:TESTHA

> Get-clustegroup  
> Name OwnerNode State

* * *

## TESTHA TEST01 Online Available Storage TEST02 Offline Cluster Group TEST02 Online

In the above scenario when I found TEST01 holds the TESTHA I want to reboot TEST02.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 26, 2021, 9:00am UTC](https://forums.powershell.org/t/get-clustergroup-help/17162/2 "2021-07-26T09:00:20Z")

</div>

Raja,

Welcome to the forum.

> [@rajas\_asuret21](#):
>
> I would like to develop a powershell script which will find the ownernode of HA and reboot the other node.

That sounds like a nice idea. 😉

> [@rajas\_asuret21](#):
>
> Can you guys help me here.

What kind of help do you need? What have you tried so far? Did you try to search for a solution first? You should ask a specific question about a particular piece of code you wrote. At the moment it sounds like you ask us to write something for you. 😉

---

<div class="post-metadata">

**Author:** ![rajas\_asuret21](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@rajas\_asuret21](https://forums.powershell.org/u/rajas_asuret21)\
**Post date:** [July 26, 2021, 5:21pm UTC](https://forums.powershell.org/t/get-clustergroup-help/17162/3 "2021-07-26T17:21:56Z")

</div>

To be frank, I am new to powershell but I would like to learn. My current requirement is above which will me to save lot of time.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 26, 2021, 7:34pm UTC](https://forums.powershell.org/t/get-clustergroup-help/17162/4 "2021-07-26T19:34:02Z")

</div>

> [@rajas\_asuret21](#):
>
> I am new to powershell but I would like to learn.

We all have been there. But we cannot “_make you learn_”. And you will not learn when we actually write the code for you.

> [@rajas\_asuret21](#):
>
> My current requirement is above which will me to save lot of time.

OK. Fair enough. But you still do not ask a specific question. So I will ask again: What have you tried so far? And what exactly do you need help with?

---

<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:23pm UTC](https://forums.powershell.org/t/get-clustergroup-help/17162/5 "2024-05-16T20:23:49Z")

</div>

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


