Set-NfsUser Command | Vmware PowerCLI Reference

Set-NfsUser

This cmdlet configures existing NFS user accounts by changing the password associated with the account. The virtual machine host must be part of an Active Directory domain for the cmdlet to run successfully.

Syntax

Set-NfsUser
-NfsUser < NfsUser[] >
-Password < SecureString >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
NfsUser NfsUser[] named
  • pipeline
Specifies the NFS user account you want to configure.
required
Password SecureString named
Specifies the new password for authentication. This parameter accepts both secure and plain strings.
optional ProgressAction ActionPreference named
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 Connect-VIServer.

Output

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

Examples

Example 1

Set-NfsUser -NfsUser $n1 -Password "password2"

Sets "password2" as the new password for the $n1 NFS user account.

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.