Skip to content

Get-FogHostGroup

SYNOPSIS

returns the group objects that a host belongs to

SYNTAX

byId (Default)

Get-FogHostGroup [-hostId <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

byHost

Get-FogHostGroup [-fogHost <Object>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

requires the id of the host you want the groups that aren't the everyone group for

EXAMPLES

EXAMPLE 1

Get-FogGroup -hostId ((Get-FogHost -hostname "computerName").id)

Gets the fog group membership(s) of the fog host with the name computerName

PARAMETERS

-fogHost

{{ Fill fogHost Description }}

Type: Object
Parameter Sets: byHost
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-hostId

The hostid to get the group memberships of

Type: Int32
Parameter Sets: byId
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES