PowerShell Logo Small

Get-NfsShare



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

Gets NFS shares on an NFS server.

SYNTAX


Get-NfsShare [[-Name] <String[]>] [[-IsClustered]] [[-NetworkName] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ExcludeName <String[]>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-NfsShare [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] -LiteralPath <String[]> [<CommonParameters>]
Get-NfsShare [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] -LiteralName <String[]> [<CommonParameters>]
Get-NfsShare [[-Path] <String[]>] [[-IsClustered]] [[-NetworkName] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ExcludePath <String[]>] [-ThrottleLimit <Int32>]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NfsShare cmdlet gets Network File System (NFS) shares that are configured on a computer. By default, the cmdlet gets all the nonclustered (standard) shares from the
local computer. If the server belongs to a server cluster, the cmdlet enumerates all the local shares in addition to the cluster shares that belong to resource groups that
the local node owns.


The local node is the node where you run the cmdlet. Shares that belong to resource groups that other nodes of the cluster own are not enumerated.



<

RELATED LINKS

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

REMARKS

<

Examples


Example 1: Get an NFS share

PS C:\> Get-NfsShare -Name "NFSshare01"
Name:                 nfsexport
Path:                 C:\shares\nfsexport
NetworkName:          GAPRASAD-TST22
Availability:         Standard (not clustered)
Online:               True
AnonymousAccess:       Disabled
AnonymousGid: -2
AnonymousUID: -2
UnmappedUserAccess:   Enabled
Authentication:         {sys, Krb5, Krb5i, Krb5p}



This command gets an NFS share named NFSshare01.




Example 2: Get all NFS shares on a local computer

PS C:\> Get-NfsShare

Name:              nfsexportA
Path:                  C:\shares\nfsexportA
NetworkName:           contoso-fs
Availability:          Standard (not clustered)
Online:                True
AnonymousAccess:       Disabled
AnonymousGID: -2
AnonymousUID: -2
UnmappedUserAccess:    Enabled
Authentication:        {sys, Krb5, Krb5i, Krb5p}
Name:              nfsexportB
Path:                  C:\shares\nfsexportB
NetworkName:           contoso-fs
Availability:          Standard (not clustered)
Online:                True
AnonymousAccess:       Disabled
AnonymousGID: -2
AnonymousUID: -2
UnmappedUserAccess:    Enabled
Authentication:        {sys, Krb5, Krb5i, Krb5p}



This command gets all the NFS shares on a local computer.