# Command not found

**URL:** <https://forums.powershell.org/t/command-not-found/14655>\
**Category:** PowerShell Help\
**Created:** [July 12, 2020, 11:08am UTC](https://forums.powershell.org/t/command-not-found/14655 "2020-07-12T11:08:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trgrassijr](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@trgrassijr](https://forums.powershell.org/u/trgrassijr)\
**Post date:** [July 12, 2020, 11:08am UTC](https://forums.powershell.org/t/command-not-found/14655/1 "2020-07-12T11:08:42Z")

</div>

Windows 2012 R2 NLB Server

Wrote a little script to get the cluster information of the NLB server

$ClusterSummary = get-nlbclusternode | out-string  
$ClusterSummary += Get-NlbClusterPortRule | out-string

&nbsp;

PS C:\Util\> get-nlbclusternode  
get-nlbclusternode : Not found  
At line:1 char:1

- get-nlbclusternode
- 

```auto

```

- CategoryInfo : NotSpecified: (🙂 [Get-NlbClusterNode], ManagementException
- FullyQualifiedErrorId : System.Management.ManagementException,Microsoft.NetworkLoadBalancingClusters.PowerShell.GetNlbClusterNode

ran this

PS C:\Util\> Import-Module NetworkLoadBalancingClusters

still not found

Ran this

PS C:\Util\> Get-Command -Module NetworkLoadBalancingClusters

CommandType Name Version Source

* * *

Cmdlet Add-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Add-NlbClusterNodeDip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Add-NlbClusterPortRule 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Add-NlbClusterVip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Disable-NlbClusterPortRule 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Enable-NlbClusterPortRule 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Get-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Get-NlbClusterDriverInfo 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Get-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Get-NlbClusterNodeDip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Get-NlbClusterNodeNetworkInterface 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Get-NlbClusterPortRule 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Get-NlbClusterVip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet New-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet New-NlbClusterIpv6Address 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Remove-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Remove-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Remove-NlbClusterNodeDip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Remove-NlbClusterPortRule 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Remove-NlbClusterVip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Resume-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Resume-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Set-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Set-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Set-NlbClusterNodeDip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Set-NlbClusterPortRule 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Set-NlbClusterPortRuleNodeHandlingPriority 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Set-NlbClusterPortRuleNodeWeight 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Set-NlbClusterVip 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Start-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Start-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Stop-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Stop-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Suspend-NlbCluster 2.0.0.0 NetworkLoadBalancingClusters  
Cmdlet Suspend-NlbClusterNode 2.0.0.0 NetworkLoadBalancingClusters

&nbsp;

It shows in the list of commands

I started powershell as administrator no change

What am I missing here?

&nbsp;

Thank you

&nbsp;

Tom

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [July 12, 2020, 6:43pm UTC](https://forums.powershell.org/t/command-not-found/14655/2 "2020-07-12T18:43:03Z")

</div>

I don’t know why this error, but its actually not a command not found exception but some exception thrown by Get-NlbClusterNode cmdlet. the command really executed and shown the error for some reason, I think the reason is not clear here as the error is not properly handled inside the cmdlet.

---

<div class="post-metadata">

**Author:** ![banterboy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/banterboy/32/80_2.png) [@banterboy](https://forums.powershell.org/u/banterboy)\
**Post date:** [July 13, 2020, 3:48am UTC](https://forums.powershell.org/t/command-not-found/14655/3 "2020-07-13T03:48:42Z")

</div>

Hello Tom,

Are you running this on your local machine or the cluster? The reason I ask is because some commands only run when you have the relevant feature installed on your machine. This commands requires you to have the Network Load Balancing feature installed to run this locally.

HTH

Luke

---

<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:29pm UTC](https://forums.powershell.org/t/command-not-found/14655/4 "2024-05-16T20:29:14Z")

</div>


