Condividi tramite


Get-WASImage

Get-WASImage

Gets a list of images.

Syntax

Parameter Set: ImageId
Get-WASImage [-ImageID] <Guid[]> [ <CommonParameters>]

Parameter Set: ImageName
Get-WASImage [[-ImageName] <String[]> ] [ <CommonParameters>]

Detailed Description

The Get-WASImage cmdlet gets a list of the images that are available in the Windows Assessment Services inventory. Image metadata is also returned.

Parameters

-ImageID<Guid[]>

Specifies the ID of the image you want to get. This is the image ID that is recorded in the Windows Assessment Services inventory. If this parameter is not specified, all images in the inventory are listed.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ImageName<String[]>

Specifies the name of the image that you want to get. This is the image name recorded in the Windows Assessment Services inventory. The full name of the image isn't required. Wildcards are accepted. If this parameter isn't specified, all images in the inventory are listed.

Aliases

none

Required?

false

Position?

1

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get all images

This command returns a list of all of the images in the Windows Assessment Services inventory.

PS C:\>Get-WASImage

Example 2: Get all images and output data to a table

This command returns a list of all of the images in the Windows Assessment Services inventory, and formats the data in a table.

PS C:\> Get-WASImage | format-table -property ImageName,OsVersion,Architecture,Language

Update-WASJob

Windows Assessment Services Technical Reference