CIM_NFS

CIM NFS
root/cimv2abstractkey : CreationClassNamekey : CSCreationClassNamekey : CSName

The CIM_NFS class represents a remote file system that is mounted, using the network file system (NFS) protocol, from a computer system.

On this page

Main example

List instances

# Abstract class: Get-CimInstance returns the instances of its subclasses
Get-CimInstance -ClassName CIM_NFS |
    Select-Object -Property CSName, Name, Caption, Description, Status, InstallDate

Abstract class: it has no instances of its own. Get-CimInstance returns the instances of its subclasses.

Examples

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    Get-CimInstance -CimSession $cimSession -ClassName CIM_NFS |
        Select-Object -Property CSName, Name, Caption, Description, Status, InstallDate
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName CIM_NFS
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

33 of 33 properties
NameTypeAccessDescription
AttributeCachingbooleanread

If TRUE, control attribute caching is enabled. If FALSE, control attribute caching is disabled.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of AttributeCaching for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, AttributeCaching |
    Select-Object -Property CSName, AttributeCaching
AttributeCachingForDirectoriesMaxuint16read

Maximum number of seconds that cached attributes are held after directory update.

Unit: seconds

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of AttributeCachingForDirectoriesMax for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, AttributeCachingForDirectoriesMax |
    Select-Object -Property CSName, AttributeCachingForDirectoriesMax
AttributeCachingForDirectoriesMinuint16read

Minimum number of seconds that cached attributes are held after directory update.

Unit: seconds

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of AttributeCachingForDirectoriesMin for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, AttributeCachingForDirectoriesMin |
    Select-Object -Property CSName, AttributeCachingForDirectoriesMin
AttributeCachingForRegularFilesMaxuint16read

Maximum number of seconds that cached attributes are held after file modification.

Unit: seconds

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of AttributeCachingForRegularFilesMax for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, AttributeCachingForRegularFilesMax |
    Select-Object -Property CSName, AttributeCachingForRegularFilesMax
AttributeCachingForRegularFilesMinuint16read

Minimum number of seconds that cached attributes are held after file modification.

Unit: seconds

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of AttributeCachingForRegularFilesMin for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, AttributeCachingForRegularFilesMin |
    Select-Object -Property CSName, AttributeCachingForRegularFilesMin
AvailableSpaceuint64read

Total amount of free space, in bytes, for the file system. If unknown, enter 0.

For more information about using uint64 values in scripts, see Scripting in WMI.

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of AvailableSpace for each instance
# AvailableSpace is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_NFS -Property CSName, AvailableSpace |
    Select-Object -Property @(
        'CSName'
        @{ Name = 'AvailableSpaceGB'; Expression = { [math]::Round($_.AvailableSpace / 1GB, 2) } }
    )
BlockSizeuint64read

File systems can read or write data in blocks that are defined independently of the underlying storage extents. This property captures the file system's block size for data storage and retrieval.

For more information about using uint64 values in scripts, see Scripting in WMI.

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of BlockSize for each instance
# BlockSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_NFS -Property CSName, BlockSize |
    Select-Object -Property @(
        'CSName'
        @{ Name = 'BlockSizeGB'; Expression = { [math]::Round($_.BlockSize / 1GB, 2) } }
    )
Captionstringread

Short textual description of the object.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Caption for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, Caption |
    Select-Object -Property CSName, Caption
CasePreservedbooleanread

If TRUE, the case of file names are preserved.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CasePreserved for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, CasePreserved |
    Select-Object -Property CSName, CasePreserved
CaseSensitivebooleanread

If TRUE, case-sensitive file names are supported.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CaseSensitive for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, CaseSensitive |
    Select-Object -Property CSName, CaseSensitive
CodeSetuint16[]read

Character sets or encoding supported by the file system.

Values (9)
ValueLabelDescription
0Unknown
1Other
2ASCII
3Unicode
4ISO2022
5ISO8859
6Extended UNIX Code
7UTF-8
8UCS-2
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CodeSet for each instance
# Lookup table for CodeSet (values documented by Microsoft)
$codeSetName = @{
    0 = 'Unknown'
    1 = 'Other'
    2 = 'ASCII'
    3 = 'Unicode'
    4 = 'ISO2022'
    5 = 'ISO8859'
    6 = 'Extended UNIX Code'
    7 = 'UTF-8'
    8 = 'UCS-2'
}
# CodeSet is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName CIM_NFS -Property CodeSet |
    Select-Object -ExpandProperty CodeSet |
    ForEach-Object -Process { $codeSetName[[int]$_] }
CompressionMethodstringread

Free-form string that indicates the algorithm or tool used to compress the logical file. If the compression scheme is unknown or not described, use "Unknown". If the logical file is compressed, but the compression scheme is unknown or not described, use "Compressed". If the logical file is not compressed, use "Not Compressed".

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CompressionMethod for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, CompressionMethod |
    Select-Object -Property CSName, CompressionMethod
CreationClassName keystringread

Name of the class or subclass used in the creation of an instance. When used with other key properties of the class, this property allows all instances of the class and its subclasses to be uniquely identified.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CreationClassName for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, CreationClassName |
    Select-Object -Property CSName, CreationClassName
CSCreationClassName keystringread

Scoping computer system's creation class name.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CSCreationClassName for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, CSCreationClassName |
    Select-Object -Property CSName, CSCreationClassName
CSName keystringread

Scoping computer system's name.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of CSName for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName |
    Select-Object -Property CSName
Descriptionstringread

Textual description of the object.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Description for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, Description |
    Select-Object -Property CSName, Description
EncryptionMethodstringread

Free-form string that identifies the algorithm or tool used to encrypt a logical file. If the encryption scheme is not indulged (for security reasons, for example), use "Unknown". If the file is encrypted, but either its encryption scheme is unknown or not disclosed, use "Encrypted". If the logical file is not encrypted, use "Not Encrypted". This property is inherited from CIM_FileSystem.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of EncryptionMethod for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, EncryptionMethod |
    Select-Object -Property CSName, EncryptionMethod
FileSystemSizeuint64read

Total size of the file system, in bytes. If unknown, enter 0 (zero).

For more information about using uint64 values in scripts, see Scripting in WMI.

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of FileSystemSize for each instance
# FileSystemSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_NFS -Property CSName, FileSystemSize |
    Select-Object -Property @(
        'CSName'
        @{ Name = 'FileSystemSizeGB'; Expression = { [math]::Round($_.FileSystemSize / 1GB, 2) } }
    )
ForegroundMountbooleanread

If TRUE, retries are performed in the foreground. If FALSE, and the first mount attempt fails, retries are performed in the background.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ForegroundMount for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, ForegroundMount |
    Select-Object -Property CSName, ForegroundMount
HardMountbooleanread

If TRUE, after the file system is mounted, NFS requests are retried until the hosting system responds. If FALSE, after the file system is mounted, an error is returned if the hosting system does not respond.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of HardMount for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, HardMount |
    Select-Object -Property CSName, HardMount
InstallDatedatetimeread

Date and time the object was installed. This property does not need a value to indicate that the object is installed.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName CIM_NFS -Property CSName, InstallDate |
    Select-Object -Property CSName, InstallDate
Interruptbooleanread

If TRUE, interrupts are permitted for hard mounts. If FALSE, interrupts are ignored for hard mounts.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Interrupt for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, Interrupt |
    Select-Object -Property CSName, Interrupt
MaxFileNameLengthuint32read

Maximum length of a file name within the file system. A value of 0 (zero)indicates that there is no limit for file name length.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of MaxFileNameLength for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, MaxFileNameLength |
    Select-Object -Property CSName, MaxFileNameLength
MountFailureRetriesuint16read

Maximum number of mount failure retries that are allowed.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of MountFailureRetries for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, MountFailureRetries |
    Select-Object -Property CSName, MountFailureRetries
Namestringread

Label by which the object is known. When subclassed, this property can be overridden to be a key property.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Name for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, Name |
    Select-Object -Property CSName, Name
ReadBufferSizeuint64read

Read buffer size, in bytes.

For more information about using uint64 values in scripts, see Scripting in WMI.

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ReadBufferSize for each instance
# ReadBufferSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_NFS -Property CSName, ReadBufferSize |
    Select-Object -Property @(
        'CSName'
        @{ Name = 'ReadBufferSizeGB'; Expression = { [math]::Round($_.ReadBufferSize / 1GB, 2) } }
    )
ReadOnlybooleanread

If TRUE, the file system is designated as read-only.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ReadOnly for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, ReadOnly |
    Select-Object -Property CSName, ReadOnly
RetransmissionAttemptsuint16read

Maximum number of NFS retransmissions allowed.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of RetransmissionAttempts for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, RetransmissionAttempts |
    Select-Object -Property CSName, RetransmissionAttempts
RetransmissionTimeoutuint32read

NFS time-out, in tenths of a second.

Unit: tenths of seconds

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of RetransmissionTimeout for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, RetransmissionTimeout |
    Select-Object -Property CSName, RetransmissionTimeout
Rootstringread

Path name or other information that defines the root of the file system.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Root for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, Root |
    Select-Object -Property CSName, Root
ServerCommunicationPortuint32read

Remote computer system's UDP port number.

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of ServerCommunicationPort for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, ServerCommunicationPort |
    Select-Object -Property CSName, ServerCommunicationPort
Statusstringread

Current status of the object.

Values include the following:

Values (12)
ValueLabelDescription
OKOK
ErrorError
DegradedDegraded
UnknownUnknown
Pred FailPred Fail
StartingStarting
StoppingStopping
ServiceService
StressedStressed
NonRecoverNonRecover
No ContactNo Contact
Lost CommLost Comm
Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of Status for each instance
Get-CimInstance -ClassName CIM_NFS -Property CSName, Status |
    Select-Object -Property CSName, Status
WriteBufferSizeuint64read

Write buffer size, in bytes.

For more information about using uint64 values in scripts, see Scripting in WMI.

Unit: bytes

Code
# Abstract class: Get-CimInstance returns the instances of its subclasses
# Value of WriteBufferSize for each instance
# WriteBufferSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName CIM_NFS -Property CSName, WriteBufferSize |
    Select-Object -Property @(
        'CSName'
        @{ Name = 'WriteBufferSizeGB'; Expression = { [math]::Round($_.WriteBufferSize / 1GB, 2) } }
    )

Remarks

The CIM_NFS class is derived from CIM_RemoteFileSystem.

WMI does not implement this class.

This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.

Inheritance

Superclass chain

  1. CIM_ManagedSystemElement
  2. CIM_LogicalElement
  3. CIM_FileSystem
  4. CIM_RemoteFileSystem
  5. CIM_NFS

Known subclasses

No known subclass.

Requirements

Namespace
root/cimv2
Minimum client
Windows Vista
Minimum server
Windows Server 2008
MOF file
CIMWin32.mof
DLL
CIMWin32.dll
Class qualifiers

Abstract UUID("{75BCF4FB-DB46-11D2-B4C8-80080C7B6371}") AMENDMENT

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.