Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Mounting NFS Shares in Windows Using the Built-in Client

March 26, 2026

Mounting NFS Shares in Windows Using the Built-in Client

Modern Windows versions include a built-in NFS client. This Windows feature enables direct mounting of NFS directories from Linux hosts or NAS devices. It provides transparent access to files and folders on NFS volumes from Windows File Explorer, similar to accessing SMB mapped drives. This guide explains how to enable the NFS client in Windows, mount an NFS network volume, and handle the mapping of Windows users to Linux UID/GID

Contents:
  • How to Enable an NFS Client on Windows
  • Mount an NFS Share on Windows Using File Explorer, PowerShell, or CMD
  • Configure NFS Client Mapping of Windows Users to Linux Users/Groups

How to Enable an NFS Client on Windows

There is a built-in NFS client available in all Windows versions starting with Windows 10. It enables users to directly mount NFS network volumes. By default, the NFS client is not installed. You can enable it through the Windows Features control panel: run the (optionalfeatures.execommand, expand Services for NFS, and enable the Client for NFS including the management tools.

Enable NFS Client on Windows 11 or 10

Or you can enable the NFS client optional feature using PowerShell.

On the desktop operating systems (Windows 10 and 11):

Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart

On Windows Server:

Install-WindowsFeature NFS-Client

Enable-WindowsOptionalFeature ServicesForNFS-ClientOnly

List the available NFS client settings in Windows:

Get-NfsClientConfiguration

Get-NfsClientConfiguration

Mount an NFS Share on Windows Using File Explorer, PowerShell, or CMD

Mounting NFS network volumes in Windows is possible through the Windows Explorer graphical interface, similar to mapping standard shared network folders (SMB shares). Select the Map network drive option in File Explorer, specify the network path to the NFS share ( use the UNC format, for example \\192.168.123.123\nfsshare), and specify the driver letter to assign.

Mount NFS share via File Explorer GUI

However, in this mode, it is not possible to set additional options for mounting the NFS share.

It is more convenient to mount NFS shares from the command prompt using:

  • mount.exe console command
  • New-PSdrive PowerShell cmdlet
When executing the mount command from the PowerShell prompt or Windows terminal, ensure you specify its name along with the extension (i.e., mount.exe). This is because in PowerShell, the mount command is an alias for the New-PSDrive cmdlet.

Mount command is an alias for New-PSDrive cmdlet

Open a command prompt (or PowerShell console) as the current user. Don’t run it as an administrator, otherwise, the mounted NFS drive will not be visible in the user’s File Explorer (see the post “Accessing Network Mapped Drives with Administrator Permissions” for more details).

Run the following command to mount the NFS share:

mount.exe -o anon \\192.168.123.123\nfsshare N:

mount.exe -o anon nfs share

  • -o anon – mount an NFS folder using an anonymous user
  • 192.168.123.123 – the NFS server’s DNS name or IP address
  • /nfsshare – local path to a directory on the NFS server. If using a Linux host with NFSv3 as the NFS server, specify the full local path to the NFS directory from the root of the file system. For example: srv01:/mnt/nfs/public
  • N: – the drive letter you want to assign to the mapped folder
To improve compatibility with Linux, which uses case-sensitive file and directory names, unlike Windows, add the option casesensitive=yes .

Or use the PowerShell equivalent of the NFS mount command:

New-PSdrive -PSProvider FileSystem -Name N -Root \\192.168.123.123\nfsshare -Persist

New-PSdrive mount NFS volume using PowerShell

Use the Persist option to ensure the NFS directory connection automatically restores after a computer reboot (the mount.exe command does not have this option)

Note that Explorer displays a new tab, NFS Attributes, in the properties of objects in the NFS folder. There, you can find information about file permissions and owners.

NFS file attributes is File Explorer on Windows

Note that files on NFS network shares with Cyrillic, Asian, Western European, or other non-Latin characters may not be shown at all or may appear as garbled text (mojibake). This is because the built-in Microsoft NFS client defaults to using a legacy ANSI codepage rather than Unicode for filename translation. As a workaround, you can enable UTF-8 support in Windows (which is still in beta): open intl.cpl -> Administrative -> Change system locale -> check the option “Beta: Use Unicode UTF-8 for worldwide language support“.

Beta: Use Unicode UTF-8 for worldwide language support

Unmount the NFS network share:

Remove-PSDrive N

or

umount.exe M:\

Run the mount.exe command to display the options with which the NFS directory is mounted.

mount.exe default UID (User ID) and GID (Group ID)

When connecting anonymously to an NFS server, Windows uses UID=-2 and GID=-2 by default to map the current user to a user on the NFS server. If you want to use a specific Linux UID (User ID) and GID (Group ID) for mounting an NFS volume anonymously, you can override these values in the AnonymousUid and AnonymousGid parameters of the HKLM\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default registry key.

For example, the following options will force the NFS client to use UID=0 and GID=0 (the Linux root user) for anonymous connections instead of the default -2.

reg add "HKLM\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default" /v AnonymousUid /t REG_DWORD /d 00000000 /f
reg add "HKLM\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default" /v AnonymousGid /t REG_DWORD /d 00000000 /f

Change AnonymousUid and AnonymousGid in the registry

After making the change, restart the NFS services:

Restart-Service nfsrdr,nfsclnt -Force

Configure NFS Client Mapping of Windows Users to Linux Users/Groups

However, anonymous NFS access is not secure. It is better to configure the mapping of Windows users to Linux user UID and GID.

To enable user mapping in the AD domain:

Set-NfsMappingStore -EnableADLookup $true
Set-NfsMappedIdentity -MappingStore AD -UserName "j.smith" -UserIdentifier 1000 -GroupIdentifier 100

Or edit the uidnumber and gidnumber parameter values in the AD user attributes.

Set-ADUser -identity j.smith -replace @{uidNumber="<user_uid>";gidNumber="<user_gid>"}

You can get the UID and GID of a user in Linux using the command:

$ id username

On stand-alone machines (in workgroups, or when you don’t want to use AD mapping), you can configure Windows username to Unix UID/GID mapping via the passwd and group files in the C:\Windows\System32\drivers\etc directory.

For example, for a local user maxadm1:

Add to the passwd file:

user1:x:1000:100:maxadm1:C:\Users\maxadm1

File group:

users:x:100:maxadm1

To check the mapping of a specific Windows user to a Linux UID/GID, use the following command:

Get-NfsMappedIdentity -AccountName user1 -AccountType User

Get-NfsMappedIdentity - get mapping of a Windows user to a UNIX user account or group account ID

The NFS server service can be installed on the Windows Server platform. For this purpose, there is a separate built-in file server role feature.
0 comment
1
Facebook Twitter Google + Pinterest
Windows 11Windows Server 2025
previous post
Run an External Program or Command with Arguments from PowerShell

Related Reading

Change BIOS from Legacy to UEFI without Reinstalling...

April 23, 2025

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

How to Move (Migrate) Windows Shares to a...

February 26, 2026

Uninstalling Windows Updates via CMD/PowerShell

March 10, 2026

How to Detect Which User Installed or Removed...

June 25, 2025

Find a Process Causing High Disk Usage on...

July 16, 2025

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

SMB over QUIC: Mount File Share over Internet...

December 24, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Mounting NFS Shares in Windows Using the Built-in Client

    March 26, 2026
  • Monitor Windows Log Files in Real Time with PowerShell

    March 17, 2026
  • Pin and Unpin Apps to Taskbar in Windows 11 via PowerShell

    March 10, 2026
  • Load and Initialize Network Drivers in Windows PE or Recovery Environment

    February 25, 2026
  • How to Set a Custom Drive Icon in Windows

    February 17, 2026
  • Managing Per-User Services in Windows

    February 11, 2026
  • Change Default OU for New Computers and Users in AD

    February 2, 2026
  • Where Windows Stores Certificates and Private Keys

    January 22, 2026
  • How to Extract Printer Drivers from Windows

    January 21, 2026
  • How to Remove Old (Unused) PowerShell Modules

    January 12, 2026

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • SMB over QUIC: Mount File Share over Internet without VPN on Windows Server 2025
  • Configuring RemoteApps Hosted on Windows 10/11 (without Windows Server)
  • How to Remove ‘Some Settings are Managed by Your Organization’ on Windows 11 or 10
  • Remove the Max Path Length Limit (260-Characters) on Windows
  • Automate Software and Settings Deployment with WinGet Configure (DSC)
  • Unable to Select Edition During Windows 10/11 Installation
  • How to Move (Migrate) Windows Shares to a New File Server
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top