Get-NfsShare

Get-NfsShare

Gets NFS shares on an NFS server.

Sintaxis

Parameter Set: ByName
Get-NfsShare [[-Name] <String[]> ] [[-IsClustered]] [[-NetworkName] <String[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-ExcludeName <String[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByLiteralName
Get-NfsShare -LiteralName <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByLiteralPath
Get-NfsShare -LiteralPath <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByPath
Get-NfsShare [[-Path] <String[]> ] [[-IsClustered]] [[-NetworkName] <String[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-ExcludePath <String[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Descripción detallada

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.

Parámetros

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ExcludeName<String[]>

Specifies an array of share names to exclude from the list of shares that the cmdlet gets from an NFS server.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ExcludePath<String[]>

Specifies an array of share paths to exclude from the list of shares that the cmdlet gets from an NFS server.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-IsClustered

Enumerates shares that are highly available and are configured in a failover cluster.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-LiteralName<String[]>

Specifies an array of share names to get from an NFS server.

The cmdlet uses the value of LiteralName exactly as typed. The cmdlet does not interpret any characters as wildcards. If the name includes escape characters, enclose it in single quotation marks ('). Single quotation marks instruct Windows PowerShell®not to interpret any characters as escape sequences.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-LiteralPath<String[]>

Specifies an array of share paths to get from an NFS server.

The cmdlet uses the value of LiteralName exactly as typed. The cmdlet does not interpret any characters as wildcards. If the name includes escape characters, enclose it in single quotation marks ('). Single quotation marks instruct Windows PowerShell not to interpret any characters as escape sequences.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Name<String[]>

Specifies an array of share names to get from a local NFS server.

Alias

ninguno

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-NetworkName<String[]>

Specifies an array of network names. Get-NfsShare gets the NFS shares scoped to specified networks.

For a local NFS share, the network name is the host name. For a server cluster, the network name is the network name in the resource group to which the share is scoped.

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Path<String[]>

Specifies an array of share paths on a local NFS server.

Alias

ninguno

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.Management.Infrastructure.CimInstance#root/Microsoft/Windows/NFS/MSFT_NfsShare

Ejemplos

Example 1: Get an NFS share

This command gets an NFS share named NFSshare01.

PS C:\> Get-NfsShare -Name "NFSshare01"

Example 2: Get all NFS shares on a local computer

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

PS C:\> Get-NfsShare

Temas relacionados

New-NfsShare

Remove-NfsShare

Set-NfsShare