Export (0) Print
Expand All

Get-WASJob

Published: March 30, 2012

Updated: September 15, 2012

Applies To: Windows 8, Windows Server 2012

Get-WASJob

Gets a list of the available jobs.

Syntax

Parameter Set: JobId
Get-WASJob [-JobID] <Guid[]> [ <CommonParameters>]

Parameter Set: JobName
Get-WASJob [[-JobName] <String[]> ] [-ProjectName <String[]> ] [ <CommonParameters>]




Detailed 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.

Parameters

-JobID<Guid[]>

Specifies the ID of the job that you want to get. If this parameter is not specified, all jobs are listed.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobName<String[]>

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.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProjectName<String[]>

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Get all jobs that match a specific search string

This command returns all the jobs with a job name that starts with "driver".


PS C:\> Get-WASJob -JobName Driver*

Example 2: Get all jobs and display first job in list

This command gets all jobs, saves it to a variable, and then displays the first job in the list.


PS C:\> $jobs = Get-WASJob
PS C:\> $jobs[0]

 

This command lists all the assets associated with the first job in the list.


PS C:\> $jobs[0].Assets

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft