Compartilhar via


Get-SmbConnection

Get-SmbConnection

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

Sintaxe

Parameter Set: Query (cdxml)
Get-SmbConnection [[-ServerName] <String[]> ] [[-UserName] <String[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Descrição detalhada

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.

Parâmetros

-AsJob

Aliases

nenhuma

Necessário?

false

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-CimSession<CimSession[]>

Executa o cmdlet em uma sessão remota ou em um computador remoto. Insira um nome do computador ou um objeto de sessão, como a saída de um cmdlet New-CimSession ou Get-CimSession. O padrão é a sessão atual do computador local.

Aliases

nenhuma

Necessário?

false

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-ServerName<String[]>

Specifies that the connections made to the server are enumerated.

Aliases

nenhuma

Necessário?

false

Posição?

2

Valor padrão

nenhuma

Aceitar entrada do pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-ThrottleLimit<Int32>

Especifica o número máximo de operações simultâneas que podem ser estabelecidas para executar o cmdlet. Se esse parâmetro for omitido ou um valor de 0 for inserido, o Windows PowerShell® calculará o limite ideal de restrição para o cmdlet com base no número de cmdlets do CIM que estão em execução no computador. O limite de restrição se aplica somente ao cmdlet atual, e não à sessão ou ao computador.

Aliases

nenhuma

Necessário?

false

Posição?

named

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-UserName<String[]>

Specifies that the connections made by the user are enumerated.

Aliases

nenhuma

Necessário?

false

Posição?

3

Valor padrão

nenhuma

Aceitar entrada do pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

<CommonParameters>

Esse cmdlet dá suporte a parâmetros comuns: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Para obter mais informações, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

O tipo de entrada é o tipo dos objetos que você pode canalizar para o cmdlet.

  • None

Saídas

O tipo de saída é o tipo de objeto emitido pelo cmdlet.

  • Microsoft.Management.Infrastructure.CimInstance#root/Microsoft/Windows/SMB/MSFT_SmbConnection

    The MSFT_SmbConnection object represent the per share per user logon per credentials used to connect.

Exemplos

EXAMPLE 1

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

PS C:\> Get-SmbConnection

EXAMPLE 2

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

PS C:\> Get-SmbConnection -ServerName Contoso-FS | Select-Object -Property *

Tópicos relacionados

Get-SmbMultichannelConnection{{INSERT_A_VALID_LINK}}

Update-SmbMultichannelConnection