nareshunik
Enthusiast
Enthusiast

thanks for the script.

But i get the below error message

PowerCLI C:\users\abcd\desktop> & '.\user list in esxi.ps1'
Get-VMHostAccount : A parameter cannot be found that matches parameter name 'VMHost'.
At C:\users\xxxx\desktop\user list in esxi.ps1:2 char:29
+    Get-VMHostAccount -VMHost <<<<  $esx |
    + CategoryInfo          : InvalidArgument: (:) [Get-VMHostAccount], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.
   Host.GetVMHostAccount
Get-VMHostAccount : A parameter cannot be found that matches parameter name 'VMHost'.
At C:\users\xxxx\desktop\user list in esxi.ps1:2 char:29
+    Get-VMHostAccount -VMHost <<<<  $esx |
    + CategoryInfo          : InvalidArgument: (:) [Get-VMHostAccount], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.
   Host.GetVMHostAccount
Get-VMHostAccount : A parameter cannot be found that matches parameter name 'VMHost'.
At C:\users\xxxx\desktop\user list in esxi.ps1:2 char:29
+    Get-VMHostAccount -VMHost <<<<  $esx |
    + CategoryInfo          : InvalidArgument: (:) [Get-VMHostAccount], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.
   Host.GetVMHostAccount
Reply
0 Kudos