次の方法で共有


MSFT_SMFileServer class

Represents a file server.

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

Windows Server 2012 R2 and Windows Server 2012: This class does not inherit from MSFT_SMStorageObject which is new for Windows Server 2016.

Syntax

[dynamic, provider("WMIStorage"), AMENDMENT]
class MSFT_SMFileServer : MSFT_SMStorageObject
{
  String  ObjectId;
  String  Identifier;
  String  FriendlyName;
  String  Names[];
  UInt16  HealthStatus;
  UInt16  OperationalStatus[];
  String  OtherOperationalStatusDescription;
  Boolean SupportsFileShareCreation;
  Boolean SupportsContinuouslyAvailableFileShare;
  uint16  FileSharingProtocols[];
  string  FileSharingProtocolVersions[];
};

Members

The MSFT_SMFileServer class has these types of members:

Methods

The MSFT_SMFileServer class has these methods.

Method Description
CreateFileShare Creates a file share.

Properties

The MSFT_SMFileServer class has these properties.

FileSharingProtocols

Data type: uint16 array

Access type: Read-only

An array that contains indicators of the file sharing protocols that are supported by the file server.

The possible values are.

NFS (2)

SMB (3)

FileSharingProtocolVersions

Data type: string array

Access type: Read-only

An array that contains the version numbers of the files sharing protocols that are specified in FileSharingProtocols.

FriendlyName

Data type: String

Access type: Read-only

Qualifiers: Required

A user-friendly string representing the name of the file server.

HealthStatus

Data type: UInt16

Access type: Read-only

Qualifiers: ArrayType ("Indexed")

The current status of the file server.

The possible values are.

Healthy (0)

Warning (1)

Unhealthy (2)

Identifier

Data type: String

Access type: Read-only

Qualifiers: Required

The ID of the logical instance of the object. This ID must be unique within the scope of the storage system.

This property is inherited from MSFT_SMStorageObject.

Windows Server 2012 R2 and Windows Server 2012: This property is present, but is not inherited from MSFT_SMStorageObject .

Names

Data type: String array

Access type: Read-only

Qualifiers: Required

An array that contains the names by which the file server is accessible on the network.

ObjectId

Data type: String

Access type: Read-only

Qualifiers: Key, Required

The ID of this class instance. This ID must be unique within the scope of the Windows Storage Management server that hosts the provider object.

This property is inherited from MSFT_SMStorageObject.

Windows Server 2012 R2 and Windows Server 2012: This property is present, but is not inherited from MSFT_SMStorageObject .

OperationalStatus

Data type: UInt16 array

Access type: Read-only

An array that contains indicators to the operational status of the file server.

OtherOperationalStatusDescription

Data type: String

Access type: Read-only

A string representation of the vendor defined operational status when the OperationalStatus property is Other.

SupportsContinuouslyAvailableFileShare

Data type: Boolean

Access type: Read-only

True if the server supports continuously available file shares; otherwise, False.

SupportsFileShareCreation

Data type: Boolean

Access type: Read-only

True if the server supports file share creation; otherwise, False.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMStorageObject

Windows Storage Management WMI Provider