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[]>] [-Confirm] [-WhatIf] [<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

NameTypeDescriptionRequired?Pipeline InputDefault Value
ConfirmSwitchParameterIf 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.falseFalse
NfsUserNfsUser[]Specifies the NFS user account you want to configure.trueTrue (ByValue)
PasswordSecureStringSpecifies the new password for authentication. This parameter accepts both secure and plain strings.trueFalse
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
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

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.