次の方法で共有


MSNFS_Export class

[The NFS Legacy WMI Classes are no longer available as of Windows Server 2012. Instead, use the NFS WMI Classes.]

Configures properties of an NFS share exported by the Server for NFS service. This class is not available on client operating systems such as Windows 7.

The following syntax is simplified from Managed Object Format (MOF) code.

Syntax

[Dynamic, Provider("MSNFS_PROVIDER"), AMENDMENT]
class MSNFS_Export
{
  string  PathName;
  string  Alias;
  boolean ClusterShare;
  boolean Online;
  string  VirtualServer;
  uint32  RpcAuth;
  uint32  UnmappedUserAccessMode;
  sint32  UnmappedWindowsUserUid;
  sint32  UnmappedWindowsUserGid;
  uint32  Permission;
  boolean AllowRootAccess;
  uint32  LanguageEncoding;
};

Members

The MSNFS_Export class has these types of members:

Methods

The MSNFS_Export class has these methods.

Method Description
CheckPathExportable Checks whether a local path is exportable.
CreateShare Creates an NFS share.
DeleteShare Stops the export of an NFS share.
ModifyShare Modifies settings of an exported NFS share.

Properties

The MSNFS_Export class has these properties.

Alias

Data type: string

Access type: Read-only

Indicates the alias associated with the share exported by the Server for NFS service. This alias is used when mounting the share from client machines.

AllowRootAccess

Data type: boolean

Access type: Read-only

If this property indicates TRUE, the NFS share has been configured to allow access by the UNIX 'root' user.

ClusterShare

Data type: boolean

Access type: Read-only

If this property is set to TRUE, the NFS share has been configured on a Windows failover cluster, as a result the share is therefore configured to be highly available.

LanguageEncoding

Data type: uint32

Access type: Read-only

Indicates the type of language encoding that has been configured for the NFS share. Possible values of this property are:

eCodeModeEucJapan (0)

eCodeModeEucKorean (1)

eCodeModeEucCNS (2)

eCodeModeJapan (3)

eCodeModeKorean (4)

eCodeModeBig5 (5)

eCodeModeChineseGB (6)

eCodeModeNoEncoding (7)

Online

Data type: boolean

Access type: Read-only

Indicates whether the share is in the online state. The property is set to TRUE if a highly available NFS share is in the online state. The property is always set to TRUE by default for NFS shares that are not highly available.

PathName

Data type: string

Access type: Read-only

Qualifiers: Key

Indicates the local path to the exported share on the NFS server.

Permission

Data type: uint32

Access type: Read-only

Gets or sets the access permissions for the exported share on the NFS server. Possible values of this property are:

no access (1)

readonly (2)

Read-Only

readwrite (4)

Read/Write

RpcAuth

Data type: uint32

Access type: Read-only

Qualifiers: BitMap ("0", "1", "2", "3", "4"), BitValues ("AUTH_NONE", "AUTH_SYS", "Krb5", "krb5i", "krb5p")

A bitmask that indicates the RPC authentication methods that are enabled for the share. Possible values of this property are:

Bit Meaning
0x1
AUTH_NONE (Anonymous)
0x2
AUTH_SYS
0x4
Kerberos 5 Authentication (Krb5)
0x8
Kerberos 5 Authentication with Integrity (Krb5i)

Note

For more information on RPC authentication, see RPC Authentication Levels.

UnmappedUserAccessMode

Data type: uint32

Access type: Read-only

Indicates if the unmapped user access mode is enabled. Possible values of this property are:

disallow unmapped user access (0)

Disallow unmapped access.

allow unmapped unix user access by uid/gid (1)

Allow unmapped UNIX user access by UID/GID.

allow anonymous access only (2)

Allow anonymous access only.

UnmappedWindowsUserGid

Data type: sint32

Access type: Read-only

Indicates the unmapped Windows user GID that will be used by the Server for NFS. By default, this property indicates a value of -2.

UnmappedWindowsUserUid

Data type: sint32

Access type: Read-only

Indicates the unmapped Windows user UID that will be used by the Server for NFS. By default, this property indicates a value of -2.

VirtualServer

Data type: string

Access type: Read-only

Indicates the failover cluster client access point (network name) over which the highly available NFS share is exported.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2
End of client support
None supported
End of server support
Windows Server 2008 R2
Namespace
Root\MSNFS
MOF
Nfswmi.mof
DLL
NfsCimProv.dll

See also

MSFT_NfsShare