This is the built-in help made by Microsoft for the command 'Grant-NfsSharePermission', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Grants permission to access shares that an NFS server exports.
Grant-NfsSharePermission [-Name] <String> [-ClientName] <String> [-ClientType] <String> [[-Permission] <String>] [[-LanguageEncoding]
<String>] [[-AllowRootAccess] <Boolean>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-NetworkName <String>] [-ThrottleLimit
<Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Grant-NfsSharePermission [-Path] <String> [-ClientName] <String> [-ClientType] <String> [[-Permission] <String>] [[-LanguageEncoding]
<String>] [[-AllowRootAccess] <Boolean>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
The Grant-NfsSharePermission cmdlet configures access permissions to a Network File System (NFS) share that an NFS server exports. You can use
Grant-NfsSharePermission to grant permissions for a share by using a specified name or path.
You can choose the type of permissions to provide to client computers, netgroups, or client groups.
You can choose to fence the language encoding across individual hosts or netgroups. Services for NFS supports fencing of shares by using the
following principals:
-- Hosts
-- Client groups
-- Netgroups
<
Get-NfsSharePermission
Revoke-NfsSharePermission
<
Example 1: Grant NFS share permissions to a specified client computer
PS C:\> Grant-NfsSharePermission -Name "Export" -ClientName "contoso-fs" -ClientType "host" -Permission "readwrite"
This command grants read/write access to a share named Export for a computer named contoso-fs.
Example 2: Grant NFS share permissions to a specified client group
PS C:\> Grant-NfsSharePermission -Name "Export" -ClientName "contoso-clientgroup" -ClientType "clientgroup" -Permission "readonly"
This command grants read-only access to a share named Export for a client group named contoso-clientgroup.