MSFT_NfsClientConfig class

Represents configuration settings for a Windows NFS client.

MSFT_NfsClientConfig is a singleton class; there is only one instance.

This class supersedes the legacy MSNFS_Client class.

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

Syntax

[ClassVersion("1.0"), dynamic, provider("nfscimprov"), AMENDMENT]
class MSFT_NfsClientConfig
{
  string  Name;
  uint32  State;
  string  Authentication[];
  boolean CaseSensitiveLookup;
  uint32  DefaultAccessMode;
  string  MountType;
  uint32  MountRetryAttempts;
  uint32  ReadBufferSize;
  uint32  RpcTimeout;
  string  TransportProtocol[];
  boolean UseReservedPorts;
  uint32  WriteBufferSize;
};

Members

The MSFT_NfsClientConfig class has these types of members:

Properties

The MSFT_NfsClientConfig class has these properties.

Authentication

Data type: string array

Access type: Read/write

An array of strings that specify the types of security that the NFS client can use when accessing shares exported by NFS servers. By default, the sys, Krb5, and Krb5i are all specified.

Note

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

sys

AUTH_SYS

krb5

Kerberos 5 authentication (Krb5)

krb5i

Kerberos 5 authentication with integrity (Krb5i)

krb5p

Kerberos 5 authentication with privacy (Krb5p)

default

Enable default security flavors (sys, Krb5, Krb5i)

all

Enable all security flavors (sys, krb, krbi, krbp)

CaseSensitiveLookup

Data type: boolean

Access type: Read/write

If TRUE, the NFS client will perform case-sensitive lookups of file names for all NFS shares that are mounted locally.

DefaultAccessMode

Data type: uint32

Access type: Read/write

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.

MountRetryAttempts

Data type: uint32

Access type: Read/write

The number of retry attempts to be performed by the NFS client while attempting a soft mount. The default value is 1. The minimum value is 0, and the maximum value is 10.

MountType

Data type: string

Access type: Read/write

The type of mount to be used when mounting a share exported by an NFS server. The default value is soft.

The possible values for this property are:

soft

Soft mount

hard

Hard mount

Name

Data type: string

Access type: Read-only

Qualifiers: key

This property is not used.

ReadBufferSize

Data type: uint32

Access type: Read/write

The size, in KB, of the read buffer to be used by the NFS client. The minimum allowed value is 1 KB; maximum 64 KB. By default, this property is set at 32 KB.

RpcTimeout

Data type: uint32

Access type: Read/write

The time-out, in seconds, to be enforced by the NFS client when handling RPC calls. The default value is 8. The minimum value is 1, and the maximum value is 60.

State

Data type: uint32

Access type: Read-only

The current state of the NFS client.

NotInstalled (0)

Stopped (1)

Running (2)

TransportProtocol

Data type: string array

Access type: Read/write

An array of strings specifying the transport protocols to be used by the NFS client for NFS, NLM, PMAP, or MAPSVR protocols. By default, both UDP and TCP are indicated for use.

The possible values for this property are:

tcp

Use TCP transport over IPv4 or IPv6 network when talking to NFS, NLM, PMAP or MAPSVR services.

udp

Use UDP transport over IPv4 or IPv6 network when talking to NFS, NLM, PMAP or MAPSVR services.

UseReservedPorts

Data type: boolean

Access type: Read/write

Specifies whether the NFS client can use ports below 1024 that are generally reserved for use by the system. If TRUE, the NFS client will use ports below 1024.

WriteBufferSize

Data type: uint32

Access type: Read/write

The size, in KB, of the write buffer to be used by the NFS client. The default value is 32 KB. The minimum value is 1 KB, and the maximum value is 64 KB.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\NFS
MOF
NfsCimProv.mof
DLL
NfsCimProv.dll