Get-SmbServerNetworkInterface

Get-SmbServerNetworkInterface

Retrieves the network interfaces used by the SMB server.

Syntax

Parameter Set: Default
Get-SmbServerNetworkInterface [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ThrottleLimit <System.Int32> ] [ <CommonParameters>] [ <WorkflowParameters>]




Detailed Description

The Get-SmbServerNetworkInterface cmdlet retrieves the network interfaces that are used by the Server Message Block (SMB) server.

Parameters

-CimSession<Microsoft.Management.Infrastructure.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.


Aliases

Session

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ThrottleLimit<System.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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

<WorkflowParameters>

This cmdlet supports the following workflow common parameters: -PSParameterCollection, -PSComputerName, -PSCredential, -PSConnectionRetryCount, -PSConnectionRetryIntervalSec, -PSRunningTimeoutSec, -PSElapsedTimeoutSec, -PSPersist, -PSAuthentication, -PSAuthenticationLevel, -PSApplicationName, -PSPort, -PSUseSSL, -PSConfigurationName, -PSConnectionURI, -PSAllowRedirection, -PSSessionOption, -PSCertificateThumbprint, -PSPrivateMetadata, -AsJob, -JobName, and –InputObject. For more information, see    about_WorkflowCommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

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

    The MSFT_SmbServerNetworkInterface object represents the network interfaces of the SMB server.


Examples

Example 1: Get network interfaces

This command retrieves the network interfaces that are used by the SMB server.


PS C:\> Get-SmbServerNetworkInterface

Example 2: Get network interfaces that match a property

This command retrieves the network interfaces that are used by the SMB server that have the link speed of 10 gigabits or faster.


PS C:\> Get-SmbServerNetworkInterface | Where-Object -Property LinkSpeed -Gt 10GB

Example 3: Get network interfaces for a specific server

This command retrieves the network interfaces that are used by the SMB server named Contoso-FS.


PS C:\> Get-SmbServerNetworkInterface | Where-Object -Property ScopeName -Eq Contoso-FS

Example 4: Get properties of network interfaces of an SMB server

This command retrieves all properties of the network interfaces that are used by the SMB server named Contoso-FS.


PS C:\> Get-SmbServerNetworkInterface | Where-Object -Property ScopeName -Eq Contoso-FS | Select-Object -Property *

Related topics

Community Additions

ADD
Show: