New-HwCertProjectDefinitionFile
New-HwCertProjectDefinitionFile
Creates an HCK project definition file.
Sintassi
Parameter Set: MachineList
New-HwCertProjectDefinitionFile -MachineList <String[]> [-ClassIdList <String[]> ] [-ContainerIdList <String[]> ] [-ControllerName <String> ] [-CrashDumpCollection <String> ] [-DriverList <String[]> ] [-EnableIsolateTargets] [-EnableMultiDeviceTest] [-HwIdList <String[]> ] [-OutputAutomatedPdef] [-PdefFilePath <String> ] [-ProjectName <String> ] [-RunSystemTest] [-SkipTestStatus <String> ] [-TestAllDevices] [-TestCollectionFilePath <String> ] [ <CommonParameters>]
Parameter Set: MachinePool
New-HwCertProjectDefinitionFile -MachinePool <String> [-ClassIdList <String[]> ] [-ContainerIdList <String[]> ] [-ControllerName <String> ] [-CrashDumpCollection <String> ] [-DriverList <String[]> ] [-EnableIsolateTargets] [-EnableMultiDeviceTest] [-HwIdList <String[]> ] [-OutputAutomatedPdef] [-PdefFilePath <String> ] [-ProjectName <String> ] [-RunSystemTest] [-SkipTestStatus <String> ] [-TestAllDevices] [-TestCollectionFilePath <String> ] [ <CommonParameters>]
Parameter Set: PdefOverrides
New-HwCertProjectDefinitionFile [-ClassIdList <String[]> ] [-ContainerIdList <String[]> ] [-ControllerName <String> ] [-CrashDumpCollection <String> ] [-EnableIsolateTargets] [-EnableMultiDeviceTest] [-HwIdList <String[]> ] [-MachineList <String[]> ] [-MachinePool <String> ] [-OutputAutomatedPdef] [-PdefFilePath <String> ] [-ProjectName <String> ] [-RunSystemTest] [-SkipTestStatus <String> ] [-TestAllDevices] [-TestCollectionFilePath <String> ] [ <CommonParameters>]
Descrizione dettagliata
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 (HCK) (https://msdn.microsoft.com/en-us/library/windows/hardware/hh833788.aspx) 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.
Parametri
-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.
Alias |
ClassList |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-ContainerIdList<String[]>
Specifies an array of container IDs, in GUID format. You can use a comma-separated list.
Alias |
ContainerList |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-CrashDumpCollection<String>
Specifies the type of Windows crash dump file to generate and collect for the project. I valori accettabili per questo parametro sono:
-- Mini
-- Kernel
-- Full
-- Disable
Default value is Disable.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-DriverList<String[]>
Specifies an array of names of target drivers. You can use a comma-separated list.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
EMDT |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
Machine |
Obbligatorio? |
true |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-MachinePool<String>
Specifies the name of an existing machine pool, which contains test computers.
Alias |
Pool |
Obbligatorio? |
true |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-OutputAutomatedPdef
Indicates that the cmdlet generates the following attributes in the project definition file:
-- Controller = "[MACHINE]"
-- TestCollectionReadLocation = "[FILTERED_TEST_COLLECTION]"
-- Path = "[PACKAGES]"
Alias |
automate |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
PROJ |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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 tests 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.
Alias |
System |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
-SkipTestStatus<String>
Specifies the skipping mode for scheduling tests. The project definition file stores this value in the <TestStatusToSkip> element. I valori accettabili per questo parametro sono:
-- Pass
-- Fail
-- NoData
The default value is Pass.
Alias |
SkipStatus |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
AllDevices |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
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.
Alias |
nessuno |
Obbligatorio? |
false |
Posizione? |
named |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
false |
Accetta caratteri jolly? |
false |
<CommonParameters>
Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Input
Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.
Output
Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.
Esempi
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"