< Back
Receive-RSJob
Post
NAME Receive-RSJob
SYNOPSIS
Gets the results of the Windows PowerShell runspace jobs in the current session.
SYNTAX
Receive-RSJob [[-Job] <RSJob[]>] [<CommonParameters>]
Receive-RSJob [[-Name] <String[]>] [<CommonParameters>]
Receive-RSJob [[-Id] <Int32[]>] [<CommonParameters>]
Receive-RSJob [-InstanceID <String[]>] [<CommonParameters>]
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.
PARAMETERS
-Job <RSJob[]>
Represents the RSJob object to receive available data from.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Name <String[]>
The name of the jobs to receive available data from.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Id <Int32[]>
The ID of the jobs to receive available data from.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-InstanceID <String[]>
The GUID of the jobs to receive available data from.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Batch <String[]>
Name of the set of jobs to receive available data from.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Name: Receive-RSJob
Author: Boe Prox/Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-RSJob -State Completed | Receive-RSJob
Description
-----------
Retrieves any available data that is outputted from completed RSJobs.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Receive-RSJob -ID 1,5,78
Description
-----------
Receives data from RSJob with IDs 1,5,78.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Receive-RSJob -InputObject (Get-RSJob)
Description
-----------
Receives data from all RSJobs.
RELATED LINKS
SYNOPSIS
Gets the results of the Windows PowerShell runspace jobs in the current session.
SYNTAX
Receive-RSJob [[-Job] <RSJob[]>] [<CommonParameters>]
Receive-RSJob [[-Name] <String[]>] [<CommonParameters>]
Receive-RSJob [[-Id] <Int32[]>] [<CommonParameters>]
Receive-RSJob [-InstanceID <String[]>] [<CommonParameters>]
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.
PARAMETERS
-Job <RSJob[]>
Represents the RSJob object to receive available data from.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Name <String[]>
The name of the jobs to receive available data from.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Id <Int32[]>
The ID of the jobs to receive available data from.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-InstanceID <String[]>
The GUID of the jobs to receive available data from.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Batch <String[]>
Name of the set of jobs to receive available data from.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Name: Receive-RSJob
Author: Boe Prox/Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-RSJob -State Completed | Receive-RSJob
Description
-----------
Retrieves any available data that is outputted from completed RSJobs.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Receive-RSJob -ID 1,5,78
Description
-----------
Receives data from RSJob with IDs 1,5,78.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Receive-RSJob -InputObject (Get-RSJob)
Description
-----------
Receives data from all RSJobs.
RELATED LINKS