Returns list of all snapins associated with a hostid
Get-FogAssociatedSnapins [[-hostId] <Object>] [<CommonParameters>]
Gives a full list of all snapins associated with a given host Gets the current host's associated snapins if no hostid is given Finds the associated snapins by first getting all snapinassociations with all hosts and filters to ones with the hostid It then uses the snapinid of that filtering to get and add each snapin object to a list object
$assignedSnapins = Get-FogAssociatedSnapins $assignedSnapins | Where-Object name -match "office"
Gets all the assigned snapins of the current host and then filters to any with the name office in them thus showing you what version of office you have assigned as a snapin to your host
The id of the host you want the assigned snapins to Defaults to getting the current hosts id with ((Get-FogHost).id)
Type: Object Parameter Sets: (All) Aliases: Required: False Position: 1 Default value: ((Get-FogHost).id) Accept pipeline input: False Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.