Get-SmbWitnessClient

Retrieves information about the Server Message Block (SMB) clients connected to the SMB witness servers in a cluster.

Syntax

Get-SmbWitnessClient
   [[-ClientName] <String[]>]
   [-State <State[]>]
   [-Flags <Flags[]>]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]

Description

The Get-SmbWitnessClient cmdlet retrieves information about Server Message Block (SMB) witness client registrations with SMB witness servers in a failover cluster. SMB witness clients can register for notification for multiple resources in the failover cluster, so there may be multiple entries for the same SMB witness client.

Examples

EXAMPLE 1

PS C:\> Get-SmbWitnessClient
Client Computer Name       Witness Node Name          File Server Node Name      Network Name               Share Name

--------------------       -----------------          ---------------------      ------------               ----------

Server1                    FileServer1                FileServer2                FSCluster                  Share

Server2                    FileServer2                FileServer1                FSCluster                  Share

Server2                    FileServer2                FileServer1                FSCluster

This example retrieves information about the all of the SMB clients connected to the SMB witness servers in a cluster.

EXAMPLE 2

PS C:\>Get-SmbWitnessClient -ClientName Server1
Client Computer Name       Witness Node Name          File Server Node Name      Network Name               Share Name

--------------------       -----------------          ---------------------      ------------               ----------

Server1                    FileServer1                FileServer2                FSCluster                  Share

This example retrieves information about the SMB client named Server1 connected to the SMB witness servers in a cluster.

Parameters

-AsJob

ps_cimcommon_asjob

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ClientName

Specifies one or more SMB clients by name.

Type:String[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Flags

Specifies an array of flags.

Type:Flags[]
Accepted values:Invalid, NetworkName, ShareName, MultiChannel
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-State

Specifies that the output is filtered based on the state of the Server Message Block (SMB) witness client registrations with SMB witness servers in a failover cluster. The acceptable values for this parameter are: Connected, Registered, RequestedNotifications, Cancelled, Disconnected or Unknown.

Type:State[]
Accepted values:Unknown, Connected, Registered, RequestedNotifications, Cancelled, Disconnected
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

None