Syntax
New-NfsUser [[-Username] <String>] [[-Password] <SecureString>] -VMHost <VMHost> [-Force] [-Credential <PSCredential>] [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<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.