Skip to Content

How Can You Easily Mount NFS Share on Windows 11 With PowerShell? With Simple Step-by-Step Helpful Solution!

Why Is Mounting an NFS Share on Windows 11 Effortless With PowerShell?

Mounting an NFS share on Windows 11 doesn’t need to be confusing or overwhelming. Follow these easy steps, and soon you’ll access files across your network without stress. Here’s a straightforward guide anyone can use.

What You Need Before You Start

  • The NFS server (like a Linux machine or a NAS box) should be ready and sharing a folder.
  • You need the folder’s path and your server’s IP or name.
  • You must be on a Windows 11 device with administrator rights.

Set Up the NFS Client on Windows 11

Method 1: Graphical Way

  1. Press the Windows + R.
  2. Type appwiz.cpl and hit Enter.
  3. In the left pane, click Turn Windows features on or off.
  4. Find Services for NFS and expand it.
  5. Check the box for Client for NFS.
  6. Click OK. Wait for it to finish, then restart your computer if prompted.

Method 2: With PowerShell

  1. Search for PowerShell in the Start menu.
  2. Right-click and choose Run as administrator.
  3. Type the command below, then press Enter:
    Enable-WindowsOptionalFeature -Online -FeatureName ServicesForNFS-ClientOnly
  4. Reboot your computer to apply changes.

How to Mount an NFS Share

  1. Open PowerShell as an administrator again.
  2. Use this command to map the NFS share as a drive:
    mount \\[NFS_Server_IP]\[Shared_Folder] [Drive_Letter]:
  3. For example:
    mount \\192.168.1.100\nfs-data Z:
  4. Replace [NFS_Server_IP] and [Shared_Folder] with your actual details.
  5. Use any free drive letter, like Z:.

Make the NFS Mount Stick After a Reboot

By default, the above method only keeps the mounting until you restart.

To make the mount stay, create a simple batch file or PowerShell script with this mount command.

Then, set up a Scheduled Task to run that script every time the computer starts:

  1. Open Task Scheduler.
  2. Create a new task.
  3. Set the trigger to At startup.
  4. Action: Run your script.
  5. Select Run with highest privileges.

Permissions & Troubleshooting

Linux servers set permissions using user and group IDs (UID/GID). If you run into permission problems, your Windows user might not match what the Linux server expects.

Sometimes, you might need extra setup like mapping users or using anonymous access.

Make sure firewalls allow NFS traffic (usually port 2049).

How to Unmount

If you want to disconnect the share, use this command in PowerShell:

Remove-PSDrive -Name Z

Replace Z with whichever drive letter you used.

Helpful Tips

  • Use drive letters that aren’t in use.
  • Stick to simple folder and server names.
  • If something isn’t working, a restart often helps.
  • For write access, make sure your NFS server has write permissions for your client’s network identity.

Mounting an NFS share on Windows 11 lets you work smoothly with Linux or Unix files, bringing your network together. With these steps, anyone can connect their Windows 11 device to NFS shares with confidence and peace of mind.