New-PartnerCustomerDeviceBatch
Creates a new device batch for the specified customer.
Syntaxe
Default (Par défaut)
New-PartnerCustomerDeviceBatch
-BatchId <String>
-CustomerId <String>
-Devices <PSDevice[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Creates a new device batch for the specified customer. The following combinations of populated properties are required at a minimum for identifying each device: HardwareHash + ProductKey, HardwareHash + SerialNumber, HardwareHash + ProductKey + SerialNumber, HardwareHash only, ProductKey only, or SerialNumber + OemManufacturerName + ModelName.
Exemples
Example 1
PS C:\> $device = New-Object -TypeName Microsoft.Store.PartnerCenter.PowerShell.Models.DevicesDeployment.PSDevice
PS C:\> $device.HardwareHash = 'HardwareHas1234'
PS C:\> $device.ProductKey = '00329-00000-0003-AA606'
PS C:\> $device.SerialNumber = '1R9-ZNP67'
PS C:\>
PS C:\> New-PartnerCustomerDeviceBatch -BatchId 'TestDeviceBatch' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -Devices $device
Creates a new device batch for the specified customer.
Paramètres
-BatchId
The identifier for the batch.
Propriétés du paramètre
Type: | String |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Jeux de paramètres
(All)
Position: | Named |
Obligatoire: | True |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Propriétés du paramètre
Type: | SwitchParameter |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Alias: | cf |
Jeux de paramètres
(All)
Position: | Named |
Obligatoire: | False |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-CustomerId
The identifier for the customer.
Propriétés du paramètre
Type: | String |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Jeux de paramètres
(All)
Position: | Named |
Obligatoire: | True |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-Devices
The devices to be included in the device batch.
Propriétés du paramètre
Type: | PSDevice[] |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Jeux de paramètres
(All)
Position: | Named |
Obligatoire: | True |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Propriétés du paramètre
Type: | SwitchParameter |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Alias: | wi |
Jeux de paramètres
(All)
Position: | Named |
Obligatoire: | False |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.