Поделиться через


New-PartnerCustomerDeviceBatch

Creates a new device batch for the specified customer.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CustomerId

The identifier for the customer.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Devices

The devices to be included in the device batch.

Parameter properties

Type:

PSDevice[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Inputs

None

Outputs

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