PowerShell Logo Small

Get-SmbConnection



This is the built-in help made by Microsoft for the command 'Get-SmbConnection', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Retrieves the connections established from the Server Message Block (SMB) client to the SMB servers.

SYNTAX


Get-SmbConnection [[-ServerName] <String[]>] [[-UserName] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-SmbConnection cmdlet retrieves the connections established from the Server Message Block (SMB) client to the SMB servers. Users can connect to an SMB share using
credentials different than the associated logon credentials so that there will be a connection listed per share per user logon per credential used.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289511
Get-SmbMultichannelConnection
Update-SmbMultichannelConnection

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-SmbConnection
ServerName ShareName UserName Credential Dialect NumOpens
---------- --------- -------- ---------- ------- --------
Contoso-FS1 VMS5 Contoso\Contoso-HV1$ Contoso\Contoso-HV1$ 3.00 1
Contoso-FS1 VMS5 NT VIRTUAL MACHI... Contoso\Contoso-HV1$ 3.00 3
Contoso-FS VMS1 Contoso\Contoso-HV1$ Contoso\Contoso-HV1$ 3.00 1
Contoso-FS VMS1 NT VIRTUAL MACHI... Contoso\Contoso-HV1$ 3.00 5
Contoso-SO VMS3 Contoso\Contoso-HV1$ Contoso\Contoso-HV1$ 3.00 1
Contoso-SO VMS3 NT VIRTUAL MACHI... Contoso\Contoso-HV1$ 3.00 1
Contoso-SO VMS3 NT VIRTUAL MACHI... Contoso\Contoso-HV1$ 3.00 2



This example retrieves the connections established from the SMB client to the SMB servers.




EXAMPLE 2

PS C:\>Get-SmbConnection -ServerName Contoso-FS | Select-Object -Property *
ContinuouslyAvailable : True
Credential : Contoso\Contoso-HV1$
Dialect : 3.00
Encrypted : False
NumOpens : 1
ServerName : Contoso-FS
ShareName : VMS1
UserName : Contoso\Contoso-HV1$
PSComputerName :
CimClass : ROOT/Microsoft/Windows/SMB:MSFT_SmbConnection
CimInstanceProperties : {ContinuouslyAvailable, Credential, Dialect, Encrypted...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties

ContinuouslyAvailable : True
Credential : Contoso\Contoso-HV1$
Dialect : 3.00
Encrypted : False
NumOpens : 5
ServerName : Contoso-FS
ShareName : VMS1
UserName : NT VIRTUAL MACHINE\F357A523-592B-4CA5-B61E-C06D5627E1C9
PSComputerName :
CimClass : ROOT/Microsoft/Windows/SMB:MSFT_SmbConnection
CimInstanceProperties : {ContinuouslyAvailable, Credential, Dialect, Encrypted...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties



This example retrieves the connections established from the SMB client to the SMB server named Contoso-FS.