New-PartnerCustomerConfigurationPolicy

Creates a new configuration policy for the specified customer.

Syntax

New-PartnerCustomerConfigurationPolicy
   [-CustomerId] <String>
   [-Name] <String>
   [-Description <String>]
   [-RemoveOemPreinstalls <Boolean>]
   [-OobeUserNotLocalAdmin <Boolean>]
   [-SkipExpressSettings <Boolean>]
   [-SkipEula <Boolean>]
   [-SkipOemRegistration <Boolean>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-PartnerCustomerConfigurationPolicy cmdlet creates a new configuration policy.

Examples

Example 1

PS C:\> New-PartnerCustomerConfigurationPolicy -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -Name "New Config Policy" -Description "Test Policy" -SkipEula $true -OobeUserNotLocalAdmin $true

Create a new configuration policy for a customer with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08. The policy is named "New Config Policy" and has a description of "Test Policy. Both the SkipEula and OobeUserNotLocalAdmin policies have been set.

Parameters

-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

Identifier for the customer.

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

-Description

Description for the new policy.

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

-Name

Policy name for the new policy.

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

-OobeUserNotLocalAdmin

Enables or disables the Disable local admin account in setup policy.

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

-RemoveOemPreinstalls

Enables or disables the Remove OEM preinstalls policy.

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

-SkipEula

Enables or disables the Skip end user license agreement (EULA) policy.

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

-SkipExpressSettings

Enables or disables the Automatically skip pages in setup policy.

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

-SkipOemRegistration

Enables or disables the Skip OEM registration policy.

Type:Boolean
Position:Named
Default value:None
Required:False
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.PSConfigurationPolicy