< Back

Get-SmbWitnessClient

Wed Jan 30, 2019 6:01 pm

NAME Get-SmbWitnessClient



SYNOPSIS

Retrieves information about the SMB clients connected to the SMB witness servers in a cluster.





SYNTAX

Get-SmbWitnessClient [[-ClientName] <String[]>] [-CimSession <CimSession[]>] [-Flags

<Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbWitnessClient.Flags[]>] [-State <State[]>] [-ThrottleLimit <Int32>] [<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.





PARAMETERS

-CimSession [<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-CimSession or

Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ClientName [<String[]>]

Specifies one or more SMB clients by name.



Required? false

Position? 2

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Flags [<Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbWitnessClient.Flags[]>]

Specifies an array of flags.



Required? false

Position? named

Default value none

Accept pipeline input? true(ByPropertyName)

Accept wildcard characters? false



-State [<State[]>]

Specifies that the output is filtered based on the state of the SMB witness client registrations with SMB witness servers in a failover cluster. The

acceptable values for this parameter are:



-- Connected

-- Registered

-- RequestedNotifications

-- Cancelled

-- Disconnected

-- Unknown



Required? false

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

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.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None









OUTPUTS

None









Example 1: Get information about all the SMB clients for the witness servers in a cluster



PS C:\\> Get-SmbWitnessClient

Client Computer Name Witness Node Name File Server Node Name Network Name Share Name

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

Server01 FileServer1 FileServer2 FSCluster Share

Server02 FileServer2 FileServer1 FSCluster Share

Server02 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: Get information about a named SMB client



PS C:\\>Get-SmbWitnessClient -ClientName "Server01"

Client Computer Name Witness Node Name File Server Node Name Network Name Share Name

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

Server01 FileServer1 FileServer2 FSCluster Share



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







RELATED LINKS

Online Version:

Move-SmbWitnessClient