Get-WASJob
Gets a list of the available jobs.
Syntax
Get-WASJob
[-JobID] <Guid[]>
[<CommonParameters>]
Get-WASJob
[[-JobName] <String[]>]
[-ProjectName <String[]>]
[<CommonParameters>]
Description
The Get-WASJob cmdlet returns a list of the jobs that are available on the Windows Assessment Services server. It also displays metadata, such as assessments, the project name, and assets associated with each job. You can use the object returned to initiate a run of the job instance using the Invoke-WASJob command.
Examples
Example 1: Get all jobs that match a specific search string
PS C:\> Get-WASJob -JobName Driver*
This command returns all the jobs with a job name that starts with "driver".
Example 2: Get all jobs and display first job in list
PS C:\> $jobs = Get-WASJob
PS C:\> $jobs[0]
This command lists all the assets associated with the first job in the list returned by the previous command.
PS C:\> $jobs[0].Assets
This command gets all jobs, saves it to a variable, and then displays the first job in the list.
Parameters
-JobID
Specifies the ID of the job that you want to get. If this parameter is not specified, all jobs are listed.
Type: | Guid[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobName
Specifies the name of the job that you want to get. The full name of the job isn't required. Wildcards are accepted. If this parameter isn't specified, all jobs are listed.
Type: | String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProjectName
Specifies the project name associated with the job that you want to get. The full name of the project isn't required. Wildcards are accepted. If this parameter isn't specified, all jobs are listed.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for