Get-WASJob
Get-WASJob
Gets a list of the available jobs.
구문
Parameter Set: JobId
Get-WASJob [-JobID] <Guid[]> [ <CommonParameters>]
Parameter Set: JobName
Get-WASJob [[-JobName] <String[]> ] [-ProjectName <String[]> ] [ <CommonParameters>]
자세한 설명
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.
매개 변수
-JobID<Guid[]>
Specifies the ID of the job that you want to get. If this parameter is not specified, all jobs are listed.
별칭 |
없음 |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
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.
별칭 |
없음 |
필수 여부 |
false |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
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.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
예제
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 returned by the previous command.
PS C:\> $jobs[0].Assets