powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VMHostAccount



NAME
Get-VMHostAccount

SYNOPSIS
Retrieves the host accounts available on a vSphere server.

SYNTAX
Get-VMHostAccount [-Group] [-User] [[-Id] ] [-Server ] []


DESCRIPTION
Retrieves the host accounts available on a vSphere server. If both User and Group parameters are set to $true, in t
he list returned by the command, group accounts come out on top. If no of the User and Group switch parameters are
provided, the cmdlet retrieves only the user accounts. If the ID parameter is set, the cmdlet filters the host acco
unts by their IDs. To specify a server different from the default one, use the -Server parameter.
Note: The specified server must be an ESX host.


PARAMETERS
-Group
Indicate that you want to retrieve only group host accounts.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-User
Indicate that you want to retrieve only user host accounts.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Id
Specify the IDs of the host accounts you want to retrieve.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Server
Specifies a vSphere server to search for the specified vSphere .NET object. If no value is given to this parame
ter, the command runs on the server currently specified in the $DefaultVIServer variable.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
HostAccount


NOTES


Depending on what the user specified, the returned object can be of one of the child types: HostGroupAccount, H
ostUserAccount.

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

C:\PS>Get-VMHostAccount -Group


Retrieves the group accounts for the default ESX host.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VMHostAccount.html
Remove-VMHostAccount
New-VMHostAccount
Set-VMHostAccount