Enable(fix) write permissions on a NFS share mounted on Windows 10

One annoying “feature” of the windows 10 NFS client is that by default the anonymous user uid and gid is set to -2, and so you can create new files and directories on your NFS server, but you can’t edit or remove existing files.
 
To fix it, you can paste the code bellow in a text file and save it with a ‘.reg’ extension, run it and reboot the machine.


#Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default]
"AnonymousUid"=dword:00000030
"AnonymousGid"=dword:00000030

 
The way the code above works is by defaulting the anon user to the uid/gid 48 ( Apache or www-data in most Linux distributions ), but you can choose any combination of uid/gid if you substitute ‘00000030’ by the HEX value of the group, in our case is id 48, so the hex is 30.

Sources:

https://graspingtech.com/mount-nfs-share-windows-10/