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

-NfsUser  <NfsUser[]>
-Password  <SecureString>
[-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
    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

    Feedback

    Was this page helpful?