PowerShell Logo Small

Grant-NfsSharePermission



This is the built-in help made by Microsoft for the command 'Grant-NfsSharePermission', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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.

SYNOPSIS

Grants permission to access shares that an NFS server exports.

SYNTAX


Grant-NfsSharePermission [-Name] <String> [-ClientName] <String> [-ClientType] <String> [[-Permission] <String>] [[-LanguageEncoding] <String>] [[-AllowRootAccess]
<Boolean>] [-AsJob] [-CimSession <CimSession[]>] [-NetworkName <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Grant-NfsSharePermission [-Path] <String> [-ClientName] <String> [-ClientType] <String> [[-Permission] <String>] [[-LanguageEncoding] <String>] [[-AllowRootAccess]
<Boolean>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=287496
Get-NfsSharePermission
Revoke-NfsSharePermission

REMARKS

<

Examples


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.