## PowerCLI Reference

# Get-NfsUser

## Synopsis

This cmdlet retrieves NFS user accounts.

Syntax

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

Related Commands

Online version
New-NfsUser
Remove-NfsUser
Set-NfsUser

Detailed Description

This cmdlet retrieves NFS user accounts.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Username | String[] | Filters the retrieved NFS user accounts by user name. | false | false
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false
VMHost | VMHost[] | Specifies the virtual machine hosts for which you want to retrieve NFS user accounts. | false | true (ByValue)

Return Type

Zero or more NfsUser objects

Notes

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.

Copyright © VMware, Inc. All rights reserved.