document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Run as Administrator and Switch to new Screen
  2. Start-Process powershell -Verb runAs
  3.  
  4. # Install NFS Client
  5. PS C:\\Windows\\system32> Install-WindowsFeature -Name NFS-Client                                                        
  6. Success Restart Needed Exit Code      Feature Result
  7. ------- -------------- ---------      --------------
  8. True    No             NoChangeNeeded {}
  9.  
  10. # NFS write permissions are restricted to the "root" user.
  11. # Windows doesn\'t have a "root" user
  12. # Map the Windows anonymous user to the OCI NFS "root" (UID 0)
  13. Set-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default -Name AnonymousUid -Value 0
  14. Set-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default -Name AnonymousGid -Value 0
  15.  
  16. # Restart Services
  17. Stop-Service -Name NfsClnt
  18. Restart-Service -Name NfsRdr
  19. Start-Service -Name NfsClnt
');