Get-WASComputer

Windows Server 2012 R2 and Windows 8.1

Get-WASComputer

Gets a list of available test computers.

구문

Parameter Set: ComputerId
Get-WASComputer [-ComputerID] <Guid[]> [ <CommonParameters>]

Parameter Set: ComputerName
Get-WASComputer [[-ComputerName] <String[]> ] [ <CommonParameters>]




자세한 설명

The Get-WASComputer cmdlet gets a list of all the test computers that are in the inventory. The list includes all the computer metadata.

매개 변수

-ComputerID<Guid[]>

Specifies the Windows Assessment Services computer ID for the computer you want to get. If this parameter is not specified, all computers in the inventory are listed. You must use the computer ID that is recorded in the Windows Assessment Services inventory, not the computer GUID.


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ComputerName<String[]>

Specifies the name of the computer that you want to get. This is the computer name recorded in the Windows Assessment Services inventory. This parameter is optional. You can also specify the computer name without the parameter. The full name of the computer isn't required. Wildcards are accepted.


별칭

없음

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

예제

Example 1: Get all computers

This command gets all the computers included in the inventory.


PS C:\> Get-WASComputer

Example 2: Get all computers and output the data to a table

This command gets all the computers and formats the output as a table.


PS C:\> Get-WASComputer | Format-Table -Property ComputerName,ComputerId,Location,StatusMessage

Example 3: Get all computers that match a specific search string

This command gets all the computers with a name that matches the search string "toast", and outputs the data to a table.


PS C:\> Get-WASComputer *toast | Format-Table -Property ComputerName,ComputerId,Location,StatusMessage

Example 4: Get all computers with a specific ID

This command gets a computer with a specific ID.


PS C:\> Get-WASComputer -ComputerId d52a668a-a138-48a6-8cdb-000000000000

Example 5: Get all computers containing a specific device

This command gets all computers that contain a specific device, and formats the output as a table.


PS C:\> $Computers = foreach ($comp in Get-WasComputer) { foreach ($device in $comp.Devices) { if ($device.Name -eq "Broadcom 802.11g Network Adapter") { $comp } } } 
PS C:\> Format-Table -Property ComputerName,ComputerId,Location,StatusMessage -InputObject $computers

Example 6: Get all computers running an action

This command gets all computers that are currently running an action, and formats the output as a table.


PS C:\> Get-WASComputer | where {$_.CurrentAction -ne $null} | Format-Table -Property ComputerName,ComputerId,Location

관련 항목

커뮤니티 추가 항목

추가
표시: