pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Windows NFSv4.1 server setup 2024-10-05
Posted by Anonymous on Sat 5th Oct 2024 16:03
raw | new post

  1. Install-WindowsFeature -name Telnet-Client
  2.  
  3. Import-Module ServerManager
  4. Add-WindowsFeature FS-NFS-Service
  5. Import-Module NFS
  6.  
  7. mkdir C:\shares\nfsfolder
  8. echo "hello world" >C:\shares\nfsfolder\testfile
  9. icacls.exe C:\shares\nfsfolder /grant "Everyone:(F)"
  10.  
  11. New-NfsShare -Name nfs1 -Path C:\shares\nfsfolder
  12. Set-NfsShare -Name nfs1 -Permission readwrite -Authentication "sys" -EnableUnmappedAccess $True -AllowRootAccess $True
  13. Set-NfsServerConfiguration -HideFilesBeginningInDot $True
  14.  
  15.  Grant-NfsSharePermission -Name nfs1 -ClientName "192.168.209.129" -ClientType "host" -AllowRootAccess $True -Permission readwrite
  16. Grant-NfsSharePermission -Name nfs1 -ClientName "127.0.0.1" -ClientType "host" -AllowRootAccess $True -Permission readwrite
  17.  
  18. nfsadmin server stop
  19. nfsadmin server start
  20.  
  21. Start-Service -Name ms-nfs41-client-service
  22.  
  23. C:\cygwin64\sbin\nfs_mount -o rw N nfs://192.168.209.129//
  24.  
  25. // EOF.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at