< Back
New-PartnerCustomerDeviceBatch
Post
NAME New-PartnerCustomerDeviceBatch
SYNOPSIS
Creates a new device batch for the specified customer.
SYNTAX
New-PartnerCustomerDeviceBatch -BatchId <String> -CustomerId <String> -Devices <PSDevice[]> [-Confirm] [-WhatIf]
[<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.
PARAMETERS
-BatchId <String>
The identifier for the batch.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CustomerId <String>
The identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Devices <PSDevice[]>
The devices to be included in the device batch.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Store.PartnerCenter.PowerShell.Models.DevicesDeployment.PSBatchUploadDetails
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... eviceBatch
SYNOPSIS
Creates a new device batch for the specified customer.
SYNTAX
New-PartnerCustomerDeviceBatch -BatchId <String> -CustomerId <String> -Devices <PSDevice[]> [-Confirm] [-WhatIf]
[<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.
PARAMETERS
-BatchId <String>
The identifier for the batch.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CustomerId <String>
The identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Devices <PSDevice[]>
The devices to be included in the device batch.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Store.PartnerCenter.PowerShell.Models.DevicesDeployment.PSBatchUploadDetails
NOTES
-------------------------- 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.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... eviceBatch