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[]>]
[-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 FileServer FileServer Network Name Client State Resources Notifications Notifications Notifications
Name Node Name IPAddress Monitored Sent Cancelled Queued
-------------------- -------------- -------------- -------------- ------------ ------------ ------------- ------------- ------------- -------------
Server1 FileServer1 FileServer2 FSCluster Requested ... 3 0 0 0
Server2 FileServer2 FileServer1 FSCluster Requested ... 3 0 0 0
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 FileServer FileServer Network Name Client State Resources Notifications Notifications Notifications
Name Node Name IPAddress Monitored Sent Cancelled Queued
-------------------- -------------- -------------- -------------- ------------ ------------ ------------- ------------- ------------- -------------
Server1 FileServer1 FileServer2 FSCluster Requested ... 3 0 0 0
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 |
-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
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for