PowerCLI Reference

Get-NfsUser

Synopsis

This cmdlet retrieves NFS user accounts.

Syntax

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

Related Commands

Online Version
New-NfsUser
Remove-NfsUser
Set-NfsUser

Detailed Description

This cmdlet retrieves NFS user accounts.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
UsernameString[]Filters the retrieved NFS user accounts by user name.falseFalse
ServerVIServer[]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.falseFalse
VMHostVMHost[]Specifies the virtual machine hosts for which you want to retrieve NFS user accounts.falseTrue (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.