New-PartnerCustomerDeviceBatch

Creates a new device batch for the specified customer.

Syntax

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.

Examples

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.

Parameters

-BatchId

The identifier for the batch.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CustomerId

The identifier for the customer.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Devices

The devices to be included in the device batch.

Type:PSDevice[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.DevicesDeployment.PSBatchUploadDetails