New-HwCertProjectDefinitionFile

New-HwCertProjectDefinitionFile

Creates an HCK project definition file.

구문

Parameter Set: MachineList
New-HwCertProjectDefinitionFile -MachineList <String[]> [-ClassIdList <String[]> ] [-ContainerIdList <String[]> ] [-ControllerName <String> ] [-CrashDumpCollection <String> {Mini | Kernel | Full | Disable} ] [-DriverList <String[]> ] [-EnableIsolateTargets] [-EnableMultiDeviceTest] [-HwIdList <String[]> ] [-OutputAutomatedPdef] [-PdefFilePath <String> ] [-ProjectName <String> ] [-RunSystemTest] [-SkipTestStatus <String> {Fail | NoData} ] [-TestAllDevices] [-TestCollectionFilePath <String> ] [ <CommonParameters>]

Parameter Set: MachinePool
New-HwCertProjectDefinitionFile -MachinePool <String> [-ClassIdList <String[]> ] [-ContainerIdList <String[]> ] [-ControllerName <String> ] [-CrashDumpCollection <String> {Mini | Kernel | Full | Disable} ] [-DriverList <String[]> ] [-EnableIsolateTargets] [-EnableMultiDeviceTest] [-HwIdList <String[]> ] [-OutputAutomatedPdef] [-PdefFilePath <String> ] [-ProjectName <String> ] [-RunSystemTest] [-SkipTestStatus <String> {Fail | NoData} ] [-TestAllDevices] [-TestCollectionFilePath <String> ] [ <CommonParameters>]

Parameter Set: PdefOverrides
New-HwCertProjectDefinitionFile [-ClassIdList <String[]> ] [-ContainerIdList <String[]> ] [-ControllerName <String> ] [-CrashDumpCollection <String> {Mini | Kernel | Full | Disable} ] [-EnableIsolateTargets] [-EnableMultiDeviceTest] [-HwIdList <String[]> ] [-MachineList <String[]> ] [-MachinePool <String> ] [-OutputAutomatedPdef] [-PdefFilePath <String> ] [-ProjectName <String> ] [-RunSystemTest] [-SkipTestStatus <String> {Fail | NoData} ] [-TestAllDevices] [-TestCollectionFilePath <String> ] [ <CommonParameters>]

자세한 설명

The New-HwCertProjectDefinitionFile cmdlet creates a Windows Hardware Certification Kit (HCK) project definition file. The project definition file includes the targets, such as devices and systems, for certification tests. The HCK automation tool uses the settings in this file to determine which targets to test. For more information, see Windows Hardware Certification Kit downloads (https://go.microsoft.com/fwlink/?LinkId=614978) in the Microsoft Developer Network (MSDN) Library.

You can update this generated file by adding any changes that are valid with respect to the project definition file schema.

매개 변수

-ClassIdList<String[]>

Specifies an array of class GUIDs as strings. For more information, see {Class-GUID} (https://technet.microsoft.com/en-us/library/cc957340.aspx) in the TechNet library. You can use a comma-separated list.

별칭

ClassList

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ContainerIdList<String[]>

Specifies an array of container IDs, in GUID format. You can use a comma-separated list.

별칭

ContainerList

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ControllerName<String>

Specifies the name of the controller or test server. The project definition file stores the controller name in the Controller attribute of the <ProjectDefinitionData> element. If you do not provide a controller name and do not specify the OutputAutomatedPdef parameter, the cmdlet uses the current computer.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-CrashDumpCollection<String>

Specifies the type of Windows crash dump file to generate and collect for the project. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- Mini
-- Kernel
-- Full
-- Disable

Default value is Disable.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-DriverList<String[]>

Specifies an array of names of target drivers. You can use a comma-separated list.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-EnableIsolateTargets

Indicates that the cmdlet creates an individual device family for each discovered target. If you do not specify this parameter, the cmdlet groups targets into families based on device class.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-EnableMultiDeviceTest

Indicates that multiple-device scheduling is enabled. The project definition file stores the Boolean setting for multiple-device scheduling in the <MultiDeviceTestGroup> element.

별칭

EMDT

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-HwIdList<String[]>

Specifies an array of hardware IDs for target devices. You can use a comma-separated list.

You can specify partial hardware IDs. The cmdlet matches a partial value as a substring of the hardware ID format. The comparison uses ASCII characters and is not case sensitive. If the ID contains an ampersand character (&), enclose the ID in double quotes (""). In Windows PowerShell®, the ampersand is a reserved character.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-MachineList<String[]>

Specifies an array of test computer names. You can use a comma-separated list. If you specify more than one computer, all of them must be in the same pool.

별칭

Machine

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-MachinePool<String>

Specifies the name of an existing machine pool, which contains test computers.

별칭

Pool

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-OutputAutomatedPdef

Indicates that the cmdlet generates the following attributes in the project definition file:

-- Controller = "[MACHINE]"
-- TestCollectionReadLocation = "[FILTERED_TEST_COLLECTION]"
-- Path = "[PACKAGES]"

별칭

automate

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-PdefFilePath<String>

Specifies the name of the project definition file. If you do not specify a name, the cmdlet creates a name in the following format: %UserProfile%\Desktop\PDEF_Files\PDEF_TimeDate\PDEF_OSPlatformName_TimeDate.xml.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ProjectName<String>

Specifies the friendly name of the project. The project definition file stores the project name in the Name attribute of the <Project> element. If you do not specify a name, the cmdlet generates a name that contains a time stamp.

별칭

PROJ

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-RunSystemTest

Indicates that the cmdlet specifies a single TargetType attribute, which equals System. Specify this parameter for testing a whole system. You cannot run a System test with any other query types.

A System test treats the target as a single device. This differs from TestAllDevices, which tests every target on a system, but treats them individually. Specify the TestAllDevices parameter to test all devices.

별칭

System

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-SkipTestStatus<String>

Specifies the skipping mode for scheduling tests. The project definition file stores this value in the <TestStatusToSkip> element. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- Pass
-- Fail
-- NoData

The default value is Pass.

별칭

SkipStatus

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-TestAllDevices

Indicates that the controller tests all target devices that it discovers. The controller discovers devices on the computers specified by the MachineList or the MachinePool parameter.

별칭

AllDevices

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-TestCollectionFilePath<String>

Specifies the full path for a test collection .xml file. The project definition file stores the path in the TestCollectionReadLocation attribute of the <Project> element. If you do not specify a path, the cmdlet uses an empty string.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

Example 1: Create a project definition file for a driver

This command creates a project definition file. The command populates the project file with HCK target values for which disk.sys is a device driver, and from all machines available in the Test07 pool.

PS C:\> New-HwCertProjectDefinitionFile -MachinePool "Test07" -DriverList "disk.sys"

관련 항목

New-HwCertTestCollection