Partager via


MSNFS_Client class

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

Configures the Client for NFS service.

This class is superseded by the MSFT_NfsClientConfig class.

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

Syntax

[Dynamic, Provider("MSNFS_PROVIDER"), Singleton, AMENDMENT]
class MSNFS_Client
{
  boolean CaseSensitiveLookup;
  uint32  FileAccessDefaultMode;
  uint32  MountType;
  uint32  Protocol;
  uint32  ReadBufferSize;
  uint32  RpcRetryCount;
  uint32  RpcTimeout;
  uint32  SecurityFlavors;
  uint32  State;
  boolean UseReservedPorts;
  uint32  WriteBufferSize;
};

Members

The MSNFS_Client class has these types of members:

Methods

The MSNFS_Client class has these methods.

Method Description
StartService Starts the Win32 Client for NFS service and mini redirector driver.
StopService Stops the Win32 Client for NFS service and mini redirector driver.

Properties

The MSNFS_Client class has these properties.

CaseSensitiveLookup

Data type: boolean

Access type: Read/write

If this property is set to TRUE, the Client for NFS service will perform case sensitive lookups of file names for all mounted shares.

FileAccessDefaultMode

Data type: uint32

Access type: Read/write

Gets or sets the default permission mode for newly created files, in UNIX style mode bits. The permissions specified by this property are set for all new files created on mounted shares. The default value of this property is 755.

MountType

Data type: uint32

Access type: Read/write

Gets or sets the type of mount to be used when mounting a share exported by an NFS server. By default this property indicates 'Soft mount'.

Possible values of this property are:

Soft (1)

Soft mount

Hard (2)

Hard mount

Protocol

Data type: uint32

Access type: Read/write

Qualifiers: BitMap ("0", "1"), BitValues ("Use TCP", "Use UDP")

Gets or sets the transport protocol to be used by the Client for NFS service for NFS, NLM, PMAP, or MAPSVR protocols. By default, both UDP and TCP are indicated for use.

Possible values of this property are:

Value Meaning
1
Use TCP transport over an IPv4 or IPv6 network when talking to NFS, NLM, PMAP, or MAPSVR services.
2
Use UDP transport over an IPv4 or IPv6 network when talking to NFS, NLM, PMAP, or MAPSVR services.
3
Use available TCP or UDP transports over an IPv4 or IPv6 network when talking to NFS, NLM, PMAP, or MAPSVR services.

ReadBufferSize

Data type: uint32

Access type: Read/write

Gets or sets the size of the read buffer (in KB) to be used by Client for NFS. The minimum allowed value is 1 KB; maximum 64 KB. By default, this property is set at 32 KB.

RpcRetryCount

Data type: uint32

Access type: Read/write

Gets or sets the number of retry attempts to be performed by Client for NFS while attempting a soft mount. The minimum allowed value is 0; maximum 10. By default, this property is set at 1.

RpcTimeout

Data type: uint32

Access type: Read/write

Gets or sets the time-out (in seconds) to be enforced by the Client for NFS service when handling RPC calls. The minimum allowed value is 1; maximum 60. By default, this property is set at 8.

SecurityFlavors

Data type: uint32

Access type: Read/write

Gets or sets the bitmask that indicates the security types to be used by the Client for NFS service when accessing shares exported by NFS servers. By default, AUTH_SYS, Krb5, and Krb5i, are all specified for use.

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.

State

Data type: uint32

Access type: Read-only

Indicates the current state of the Client for NFS service. Possible values of this property are:

NotInstalled (0)

Client not installed

Stopped (1)

Running (2)

UseReservedPorts

Data type: boolean

Access type: Read/write

This property specifies whether Client for NFS service may use ports less than 1024 that are generally reserved for use by the system. If set TRUE, the Client for NFS service will use ports below 1024.

WriteBufferSize

Data type: uint32

Access type: Read/write

Gets or sets the size of the write buffer, in KB, to be used by the Client for NFS service. The minimum allowed value is 1 KB; maximum 64 KB. By default, this property is set at 32 KB.

Requirements

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