Get-NfsUser Command | Vmware PowerCLI Reference

Get-NfsUser

This cmdlet retrieves NFS user accounts.

Syntax

Get-NfsUser
[-Name < String[] > ]
[-Server < VIServer[] > ]
[-VMHost < VMHost[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Name String[] named
  • wildcards
Filters the retrieved NFS user accounts by user name.
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
optional VMHost VMHost[] named
  • pipeline
  • wildcards
Specifies the virtual machine hosts for which you want to retrieve NFS user accounts.

Output

VMware.VimAutomation.Storage.Types.V1.Nfs.NfsUser

Examples

Example 1

Get-NfsUser -VMHost $vmhost

Retrieves the NFS user accounts from the specified host.

Example 2

Get-NfsUser -Username MyUser*

Retrieves all NFS user accounts that have a user name which starts with MyUser.

Related Commands

NfsUser

This cmdlet retrieves NFS user accounts.

This cmdlet creates an NFS user account on the specified virtual machine host.

This cmdlet deletes the specified NFS user accounts.

This cmdlet configures existing NFS user accounts by changing the password associated with the account.