Skip to content

Latest commit

 

History

History
107 lines (78 loc) · 2.36 KB

Get-GRRHuntInfo.md

File metadata and controls

107 lines (78 loc) · 2.36 KB
external help file Module Name online version schema
PowerGRR-help.xml
PowerGRR
2.0.0

Get-GRRHuntInfo

SYNOPSIS

Get hunt info for a specific hunt.

SYNTAX

Get-GRRHuntInfo [[-HuntId] <String[]>] [[-Credential] <PSCredential>] [-ShowJSON] [<CommonParameters>]

DESCRIPTION

Get hunt info for a specific hunt.

EXAMPLES

Example 1

PS C:\> Get-GRRHuntInfo "AAAAAAAA" -Credential $cred

Read the hunt infos based on a hunt id.

Example 2

PS C:\> "H:AAAAAAAA" | Get-GRRHuntInfo | select description, all_clients_count, completed_clients_count, remaining_clients_count, clients_queued_count, clients_with_results_count, results_count | fl

Use pipeline to get hunt info and the credentials from the variable $GRRCredential are used without the need for -Credential.

Example 3

PS C:\> Get-GRRHuntInfo -HuntId H:AAAAAAAA, H:BBBBBBBB, H:CCCCCCCC | select description, all_clients_count, completed_clients_count, remaining_clients_count, clients_queued_count, clients_with_results_count, results_count | fl

Read all the hunt infos for all the given hunt ids and use the credentials from the variable $GRRCredential without the need for -Credential.

PARAMETERS

-Credential

GRR credentials.

Type: PSCredential
Parameter Sets: (All)
Aliases:

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

-HuntId

Hunt id for which the info should be returned.

Type: String[]
Parameter Sets: (All)
Aliases:

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

-ShowJSON

Return plain JSON instead of parsed JSON object.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

Keine

OUTPUTS

System.Object

NOTES

RELATED LINKS