Export (0) Print
Expand All

MSFT_SmbConnection class

Represents a connection established from an SMB client to an SMB server from the client's perspective.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

class MSFT_SmbConnection
{
  string  ServerName;
  string  ShareName;
  string  UserName;
  uint32  SmbInstance;
  string  Credential;
  uint64  NumOpens;
  string  Dialect;
  boolean ContinuouslyAvailable;
  boolean Encrypted;
  boolean EnableLoadBalanceScaleOut;
};

Members

The MSFT_SmbConnection class has these types of members:

Methods

The MSFT_SmbConnection class has these methods.

MethodDescription
Create

Establishes a connection to an SMB server.

 

Properties

The MSFT_SmbConnection class has these properties.

ContinuouslyAvailable
Data type: boolean
Access type: Read-only

true if the connection is continuously available.

Credential
Data type: string
Access type: Read-only

The credential (domain + user name) that was used to establish the connection.

Dialect
Data type: string
Access type: Read-only

The SMB version.

EnableLoadBalanceScaleOut
Data type: boolean
Access type: Read-only

true if load balancing is enabled with scale out clusters, otherwise false.

Windows Server 2012 and Windows 8:  This property is not supported before Windows Server 2012 R2 and Windows 8.1.

Encrypted
Data type: boolean
Access type: Read-only

true if the connection established to the SMB server and share was encrypted.

NumOpens
Data type: uint64
Access type: Read-only

Number of handles opened on the server and share.

ServerName
Data type: string
Access type: Read-only
Qualifiers: Key

The server name.

ShareName
Data type: string
Access type: Read-only
Qualifiers: Key

The name of the shared resource to which the connection is established.

SmbInstance
Data type: uint32
Access type: Read-only

The identifier of the SMB server instance that hosts the shares.

Windows Server 2012 and Windows 8:  This property is not supported before Windows Server 2012 R2 and Windows 8.1.

Default (0)
CSV (1)
UserName
Data type: string
Access type: Read-only
Qualifiers: Key

The user name that was used to establish the connection.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

\ROOT\Microsoft\Windows\Smb

MOF

SmbWmiV2.mof

DLL

SmbWmiV2.dll

 

 

Show:
© 2014 Microsoft