Windows 10 NFS Client Add

Jump to navigation Jump to search

Enable NFS service

Can do this remotely via psexec

Check initial state disabled, enable, check again is now enabled

DISM /online /get-featureinfo /featurename:ClientForNFS-Infrastructure
DISM /online /enable-feature /all /featurename:ClientForNFS-Infrastructure
DISM /online /get-featureinfo /featurename:ClientForNFS-Infrastructure

Put users in system reg - because why would you want to do that in any more sensible way??!!, lol.

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

Add mapping batch file as drive mapping not persistent across log out/ reboot. (using -o anon then uses the UID/GID from registry above as you cannot set it at mount time...)

\Users\XXXXXXXXXX\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\nfs_mount.bat

@echo off
echo ** Mounting NFS shares **
mount -o anon -o nolock \\\exportedfolderV v:
mount -o anon -o nolock \\\exportedfolderW w: