Get-SCHostReserve
Gets the host reserve and placement settings for a host group.
Get-SCHostReserve
-VMHostGroup <HostGroup>
[-VMMServer <ServerConnection>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The Get-SCHostReserve cmdlet retrieves the placement settings for a host group. In addition to host reserve calculations, placement settings are used for the dynamic optimization and power optimization features.
PS C:\> $HostGroup = Get-SCVMHostGroup "HostGroup01"
PS C:\> $HostReserve = Get-SCHostReserve -VMHostGroup $HostGroup
PS C:\> $HostReserve
The first command gets the host group object named HostGroup01 and stores the object in the $HostGroup variable.
The second command gets the host reserve object for the host group stored in $HostGroup, and then stores the object in the $HostReserve variable.
The last command displays information about the host reserve settings stored in $HostReserve to the user.
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies a virtual machine host group object or an array of host group objects.
Type: | HostGroup |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a VMM server object.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
ConfigurationProvider
This cmdlet returns a ConfigurationProvider object.