The Get-SCVMHostGroup cmdlet gets one or more host group objects from the System Center Virtual Machine Manager (VMM) database.
For more information about host groups, type: "Get-Help New-VMHostGroup -detailed".
For more information about Get-SCVMHostGroup, type: "Get-Help Get-SCVMHostGroup -online".
Parameters
Name
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies the name of a VMM object.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Name
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies the name of a VMM object.
ID
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies the numerical identifier (as a globally unique identifier, or GUID) for a specific object.
Name
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies the name of a VMM object.
ParentHostGroup
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies the parent host group that contains one or more hosts, host groups, or host clusters.
Examples
1: Get all host groups at the
specified path.
PS C:\> Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup01" }
This command gets the host groups located at host path "All Hosts\HostGroup01" and displays information about these host groups to the user.
2: Display the name and path
properties for all host groups.