Syntax
New-NfsUser [[-Username] <String>] [[-Password] <SecureString>] [-Credential <PSCredential>] [-Force] [-Server <VIServer[]>] -VMHost <VMHost> [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet creates an NFS user account on the specified virtual machine host. The credentials of the newly created NFS user account are used by NFS v4.1 for Kerberos authentication. If an NFS user account already exists on the virtual machine host, this cmdlet overwrites that NFS user account. The virtual machine host must be part of an Active Directory domain for the cmdlet to run successfully.Parameters
Return Type
The newly created NfsUser objectNotes
Examples
-------------------------- Example 1 --------------------------
New-NfsUser -VMHost $vmhost -Username "user1" -Password "password1"
Creates the "user1" NFS user account on the $vmhost virtual machine host and sets the password to "password1".
-------------------------- Example 2 --------------------------
New-NfsUser -VMHost $vmhost -Credential $myCredentialsObject
Creates an NFS user account by using a credential object.