## PowerCLI Reference

# Set-NfsUser

## Synopsis

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

Syntax

Set-NfsUser -NfsUser <NfsUser[]> -Password <SecureString> [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-NfsUser
New-NfsUser
Remove-NfsUser

Detailed Description

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.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false
NfsUser | NfsUser[] | Specifies the NFS user account you want to configure. | true | true (ByValue)
Password | SecureString | Specifies the new password for authentication. This parameter accepts both secure and plain strings. | true | 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
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

Return Type

The modified NfsUser object

Notes

Examples

-------------- Example 1 --------------

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

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

Copyright © VMware, Inc. All rights reserved.