Mounting NFS shares in Windows using the built-in client

Install Client for NFS in Windows, then run mount -o anon \\ServerIP\ShareName Z: in Command Prompt to mount an NFS share to drive Z.

This guide covers enabling the client on Windows 11, Windows 10 and Windows Server, mounting from File Explorer, PowerShell or CMD, and mapping Windows users to Linux accounts.

Mounting NFS shares in Windows using the built-in client
Run this after turning on Client for NFS, and replace ServerIP and ShareName with your server address and export name. (Image: Microsoft)

How to mount an NFS share in Windows with the mount command

These steps assume the NFS server allows anonymous access. Replace ServerIP and ShareName with your server address and export name.

  1. Turn on Client for NFS in Windows features, as described in the next section.
  2. Open Command Prompt. It does not need to be elevated.
  3. Run mount -o anon \\ServerIP\ShareName Z: to mount the share as drive Z.
  4. Open Z: in File Explorer to confirm that the files on the export appear.

The mount command also accepts the ServerName:/ShareName form, and * in place of a drive letter uses the first available letter. If the server is at another site, you can set up a built-in VPN connection to reach it first.

What NFS versions does the Windows NFS client support?

Client for NFS speaks NFSv2 and NFSv3 only, on every currently supported Windows release. Check that your server offers one of those versions before you troubleshoot anything else.

Windows edition Client for NFS Server for NFS
Windows client (currently supported versions) NFSv2 and NFSv3 Not available
Windows Server (currently supported versions) NFSv2 and NFSv3 NFSv2, NFSv3 and NFSv4.1

A Windows client cannot mount an NFSv4.1 volume. Enable NFSv3 on the export, or use SMB if the server can present the same data through both protocols.

Windows NFS client versions table showing Client for NFS supports NFSv2 and NFSv3
A Windows client cannot mount an NFSv4.1 volume, so enable NFSv3 on the export or use SMB instead. (Image: Microsoft)

How to enable an NFS client on Windows

The mount utility exists only after Client for NFS is installed. You need an administrator account to change Windows features.

  1. Press Windows + R, type optionalfeatures and press Enter.
  2. Wait for the Turn Windows features on or off dialog to load.
  3. Expand the Services for NFS entry.
  4. Select Client for NFS and click OK.
  5. Wait for Windows to apply the change, and restart if it asks you to.
  6. Open Command Prompt and run mount to check that the command now exists.

On Windows Server, open Server Manager, go to Manage and then Add Roles and Features, and select Client for NFS on the Select features page. If no NFS entry appears in the dialog on a Windows PC, that installation does not offer the component.

Enable Client for NFS with PowerShell on Windows 11 and Windows 10

List the NFS features first and copy the exact names from your own output. Use PowerShell as administrator.

Get-WindowsOptionalFeature -Online | Where-Object FeatureName -like "*NFS*"
Enable-WindowsOptionalFeature -Online -FeatureName <FeatureName> -All

The first line lists every NFS feature on this PC with its state. The second enables the one you name, and -All also enables any parent features it depends on. Repeat it for each client feature in the list, such as ClientForNFS-Infrastructure.

You should see: The feature shows State : Enabled when you run the first line again, and mount runs without an error.

Mount an NFS share on Windows using File Explorer, PowerShell, or CMD

All three routes use the same Client for NFS component, so the choice comes down to options and whether the drive should come back after you sign in again.

Your situation Use this Why
You need mount options such as mtype=hard or fileaccess CMD with mount It exposes every Client for NFS option
You are scripting, or want a saved drive from the shell PowerShell with mount.exe or New-PSDrive -Persist It works inside existing automation
You prefer a graphical route and want the drive at each sign-in File Explorer with Map network drive Reconnect at sign-in keeps the mapping

How to mount an NFS share from Command Prompt

This example uses a hard mount, which Microsoft recommends to reduce disruption during server reboots. It also sets default permissions for new files.

mount -o mtype=hard -o fileaccess=764 \\ServerIP\ShareName Z:

mtype=hard keeps retrying when the server drops out, and fileaccess=764 gives new files rwx for the owner, rw for the group and r for everyone else. Repeat -o for each option, as Microsoft's Azure NetApp Files examples do.

You should see: Z: appears under This PC, and running mount with no arguments lists the share and its options.

With a hard mount, apps that use the share can appear to stop responding while the NFS server is down, because the client retries until the server returns.

How to mount an NFS share in PowerShell

In PowerShell, plain mount is an alias for New-PSDrive, so it asks for a drive name instead of running the NFS tool. Type mount.exe to reach the NFS command.

mount.exe -o anon \\ServerIP\ShareName Z:
New-PSDrive -Name "Z" -PSProvider "FileSystem" -Root "\\ServerIP\ShareName" -Persist

Run one line or the other, not both. The first calls the NFS mount tool with its options. The second creates a saved Windows mapped drive that File Explorer and other PowerShell sessions can see, but it takes no NFS options.

You should see: Get-ChildItem -Path Z: lists the files on the export.

Without -Persist, New-PSDrive creates a temporary drive known only to that PowerShell session. In a script, add -Scope Global so the drive survives after the script ends.

Mount an NFS share in PowerShell with New-PSDrive and the Persist parameter
Without -Persist, New-PSDrive creates a temporary drive known only to that PowerShell session, and it takes no NFS options. (Image: Microsoft)

How to map an NFS share as a network drive in File Explorer

You can map a network drive to an NFS export the same way as a Windows share, once Client for NFS is on.

  1. Open File Explorer and select This PC in the left pane.
  2. Select More on the ribbon and choose Map network drive.
  3. Pick a letter in the Drive list.
  4. Type \\ServerIP\ShareName in the Folder box.
  5. Select Reconnect at sign-in if you want the drive back every time you sign in.
  6. Select Finish.

If Map network drive is not on the More menu, right-click This PC in the folder pane to find it.

Windows mount command options for NFS shares

Option What it does Default or values
-o mtype=soft or hard Sets the mount type. Soft mounts time out more easily, while hard mounts keep retrying Soft
-o rsize= and -o wsize= Set the read and write buffer sizes in kilobytes 1, 2, 4, 8, 16 or 32, with 32 as the default
-o timeout= Sets the RPC time-out in seconds 0.8, 0.9 or 1-60, with 0.8 as the default
-o retry= Sets retries for a soft mount 1-10, with 1 as the default
-o fileaccess= Sets the default permissions for new files as owner, group and world digits Three digits, each 0-7
-o anon Mounts as an anonymous user The server must allow anonymous access
-o nolock Disables file locking Locking is on by default
-o casesensitive Forces case-sensitive file lookups on the server Off unless you set it
-o lang= Sets the language encoding for the share One value, such as euc-jp, Big5 or Ansi
-o sec= Sets the security mechanism sys, krb5, krb5i or krb5p
-u: and -p: Supply a user name and password, and * prompts for the password A name without a leading backslash counts as a UNIX user name

sec=sys performs no authentication checks and does not encrypt data. sec=krb5p adds encryption to Kerberos authentication, so use it when the server supports Kerberos and the data is sensitive.

Windows mount command options for NFS shares including rsize, wsize, timeout and mtype
Soft is the default mount type; Microsoft recommends a hard mount to reduce disruption during NFS server reboots. (Image: Microsoft)

Configure NFS client mapping of Windows users to Linux users/groups

Mapping tells the client which UNIX UID and GID belong to a Windows account, so files on the share get the right owner. A standalone PC can use two local files, and they work on clients and servers alike.

Both files must exist in %SystemRoot%\system32\drivers\etc. The only fields Windows reads are the user name, UID and GID in passwd, and the group name, GID and group list in group.

  1. Create a file named passwd with no extension in %SystemRoot%\system32\drivers\etc.
  2. Copy the matching user line from /etc/passwd on the Linux server, and change the first field to your Windows account name.
  3. Create a file named group in the same folder.
  4. Copy the matching group line from /etc/group on the Linux server, and change its name to your Windows group if it differs.
  5. Run nfsadmin client stop, then nfsadmin client start, in an elevated Command Prompt.
  6. Run Resolve-NfsMappedIdentity -Id 1000 -AccountType User with your own UID to see which account it resolves to.
  7. Mount the share again and check the owner of a new file on the Linux server.

By default, members of BUILTIN\Users can read both files. Mapping events are logged in the ServicesForNfs-Server\IdentityMapping channel in Event Viewer, which is the place to look when a lookup fails.

NFS identity mapping with Active Directory, LDAP or local files

Use a central store when more than a few machines need the same mapping. Active Directory is the source Microsoft recommends in place of the old mapping server.

Mapping source Works for Client for NFS Best fit How to set it up
Active Directory Yes Domain-joined machines Set-NfsMappingStore -EnableADLookup $True, with uidNumber and gidNumber set on accounts
AD LDS or another RFC 2307 LDAP store Yes Domain and non-domain machines Set-NfsMappingStore -EnableLDAPLookup $True -LdapServer "Contoso-LDAP"
Local passwd and group files Yes Standalone PCs and small setups Files in %SystemRoot%\system32\drivers\etc
User Name Mapping server Yes, but deprecated Existing older deployments only mapadmin manages an existing server
Unmapped UNIX User Access No, Server for NFS only Servers using AUTH_SYS Not applicable to a client

With Active Directory or LDAP, New-NfsMappedIdentity -UserName "JBrown" -UserIdentifier 500 -GroupIdentifier 41 creates a mapping. These cmdlets can only read file-based mappings, so edit the local files by hand.

NFS identity mapping with Active Directory or LDAP using Set-NfsMappingStore commands
Use a central store when more than a few machines need the same mapping, with uidNumber and gidNumber set on accounts. (Image: Microsoft)

How to see mounted NFS shares in Windows

  1. Run mount with no arguments in Command Prompt to list each mounted NFS share and its options.
  2. Run showmount -e ServerIP to display the file systems the server exports.
  3. Run nfsadmin client to display the current Client for NFS settings.
  4. Create a test file on the share, then check its owner and mode on the Linux server.
See mounted NFS shares in Windows with showmount syntax and its parameters
Run showmount -e ServerIP to display the file systems the server exports; plain mount lists the shares already mounted. (Image: Microsoft)

How to unmount an NFS share in Windows

  1. Close any files and folders open on the drive.
  2. Run umount Z: in Command Prompt to remove the drive.
  3. Add -f to force the unmount if a drive will not disconnect, as in umount -f Z:.
  4. Run umount -a to remove every NFS-mounted drive at once.
  5. Run Remove-PSDrive -Name Z in PowerShell if you created the drive with New-PSDrive.

How to change default NFS client settings in Windows

Change the defaults when every mount on the PC should use the same values. Options on a mount command still apply to that single mount.

  1. Open Command Prompt as administrator.
  2. Run nfsadmin client to see the current settings.
  3. Run nfsadmin client config mtype=hard to make hard mounts the default.
  4. Run nfsadmin client config fileaccess=750 to set the default file permissions.
  5. Run nfsadmin client stop, then nfsadmin client start, and mount the share again.

In PowerShell, Set-NfsClientConfiguration -DefaultAccessMode 755 -ReadBufferSize 64 -WriteBufferSize 64 changes similar settings, and Get-NfsClientConfiguration shows the result. Run nfsadmin client config perf=default to restore the default performance values.

NFS mount not working on Windows

mount is not recognized in Command Prompt

The utility is available only when Client for NFS is installed.

  1. Turn on Client for NFS in Windows features.
  2. Restart Windows if it asks you to.
  3. Open a new Command Prompt and run mount again.

mount in PowerShell asks for a name or a root

PowerShell treats mount as an alias for New-PSDrive.

  1. Press Ctrl + C to cancel the prompt.
  2. Type mount.exe with the same options and path.

Windows cannot mount an NFSv4.1 export

Client for NFS supports NFSv2 and NFSv3 only.

  1. Enable NFSv3 for the export on the server.
  2. Run showmount -e ServerIP to confirm that the export is listed.
  3. Mount the share again.

Anonymous NFS mount fails or files are read-only

-o anon works only when the server allows anonymous access, and the export's own permissions still apply.

  1. Confirm that the export allows anonymous access on the server.
  2. Check the export permissions from a Linux client, where chmod 775 gives the owner and group write access.
  3. Mount with -u:username -p:* or set up identity mapping if the export requires a real account.

NFS share disconnects or times out on Windows

Windows uses a soft mount by default, and soft mounts time out more easily during connection problems.

  1. Unmount the drive with umount Z:.
  2. Mount it again with -o mtype=hard.
  3. Raise -o timeout= on a soft mount if a hard mount does not suit your apps.

Windows NFS client slow when browsing folders

Case-insensitive lookups can slow searches through folders and subfolders.

  1. Run Set-NfsClientConfiguration -CaseSensitiveLookup 1 in PowerShell as administrator.
  2. Mount the volume again.
  3. Keep in mind that file names on the share must now match in case.

Windows NFS client FAQ

Does Windows 11 have a built-in NFS client?

Yes, Client for NFS is a Windows component that you turn on through Windows features. Microsoft documents the mount, nfsadmin and showmount commands for Windows 11 and Windows 10, and the client supports NFSv2 and NFSv3.

Can Windows mount NFSv4 shares?

No, Client for NFS on Windows client and Windows Server supports NFSv2 and NFSv3 only. Microsoft states that mounting NFSv4.1 volumes on Windows clients is not supported, so the export must offer NFSv3.

How do I mount an NFS share automatically at sign-in?

Map the share in File Explorer with Reconnect at sign-in selected, or run New-PSDrive with the Persist switch in PowerShell. Microsoft's reference for the mount command lists no option that makes a mount permanent.

How do I mount an NFS share with a username and password?

Add -u: and -p: to the command, as in mount -u:username -p:* followed by the share and drive letter. The asterisk prompts for the password, and a name with no leading backslash is treated as a UNIX user name.

What is the difference between a soft and hard NFS mount in Windows?

A soft mount returns a failure to the app after its retries run out, and it is the Windows default. A hard mount keeps retrying until the server returns, which Microsoft recommends to reduce disruption during server reboots.

Is NFS on Windows encrypted?

Not with sec=sys, which performs no authentication checks and sends data unencrypted. Encryption comes from sec=krb5p, which adds privacy to Kerberos authentication, and your NFS server has to support that mode for the mount to work.

How do I list the NFS exports on a server from Windows?

Run showmount -e followed by the server name or address. It displays the file systems the server exports, so you can copy the exact share name into your mount command before you try to connect.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *