Receive-RSJob
SYNOPSIS
Gets the results of the Windows PowerShell runspace jobs in the current session.
SYNTAX
Job (Default)
Receive-RSJob [[-Job] <RSJob[]>] [<CommonParameters>]
Name
Receive-RSJob [[-Name] <String[]>] [<CommonParameters>]
Id
Receive-RSJob [[-Id] <Int32[]>] [<CommonParameters>]
InstanceID
Receive-RSJob [-InstanceID <String[]>] [<CommonParameters>]
Batch
Receive-RSJob [-Batch <String[]>] [<CommonParameters>]
DESCRIPTION
Gets the results of the Windows PowerShell runspace jobs in the current session. You can use Get-RSJob and pipe the results into this function to get the results as well.
EXAMPLES
EXAMPLE 1
Get-RSJob -State Completed | Receive-RSJob
Description
Retrieves any available data that is outputted from completed RSJobs.
EXAMPLE 2
Receive-RSJob -ID 1,5,78
Description
Receives data from RSJob with IDs 1,5,78.
EXAMPLE 3
Receive-RSJob -InputObject (Get-RSJob)
Description
Receives data from all RSJobs.
PARAMETERS
-Job
Represents the RSJob object to receive available data from.
Type: RSJob[]
Parameter Sets: Job
Aliases: InputObject
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Name
The name of the jobs to receive available data from.
Type: System.String[]
Parameter Sets: Name
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Id
The ID of the jobs to receive available data from.
Type: System.Int32[]
Parameter Sets: Id
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-InstanceID
The GUID of the jobs to receive available data from.
Type: System.String[]
Parameter Sets: InstanceID
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Batch
Name of the set of jobs to receive available data from.
Type: System.String[]
Parameter Sets: Batch
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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
Name: Receive-RSJob Author: Boe Prox/Max Kozlov