PowerShell Logo Small

Set-NfsShare



This is the built-in help made by Microsoft for the command 'Set-NfsShare', 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

Changes configuration settings of an NFS share.

SYNTAX


Set-NfsShare [-Name] <String> [[-Authentication] <String[]>] [[-EnableAnonymousAccess] <Boolean>] [[-EnableUnmappedAccess] <Boolean>] [[-AnonymousGid] <Int32>]
[[-AnonymousUid] <Int32>] [[-LanguageEncoding] <String>] [[-AllowRootAccess] <Boolean>] [[-Permission] <String>] [-AsJob] [-CimSession <CimSession[]>] [-NetworkName
<String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-NfsShare [-Path] <String> [[-Authentication] <String[]>] [[-EnableAnonymousAccess] <Boolean>] [[-EnableUnmappedAccess] <Boolean>] [[-AnonymousGid] <Int32>]
[[-AnonymousUid] <Int32>] [[-LanguageEncoding] <String>] [[-AllowRootAccess] <Boolean>] [[-Permission] <String>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit
<Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-NfsShare cmdlet changes configuration settings for an existing share that Server for Network File System (NFS) exports. You can use the NetworkName parameter to
select a share in a server cluster. NetworkName is not required when you modify configuration settings of non-clustered (standard) shares.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=287513
Get-NfsShare
New-NfsShare
Remove-NfsShare

REMARKS

<

Examples


Example 1: Enable unmapped user access on an NFS share

PS C:\> Set-NfsShare -Name "NFSshare01" -EnableUnmappedAccess $true



This command enables unmapped users to access the NFS share NFSshare01.




Example 2: Set the authentication protocol of an NFS share

PS C:\> Set-NfsShare -Name "NFSshare01" -Authentication sys,krb5 -AnonymousUid 100 -AnonymousGid 200



This command sets the authentication protocol as AUTH_SYS and Kerberos v5 on the NFS share NFSshare01. The command also sets the anonymous UID to 100 and the anonymous GID
to 200.