Set-CMCertificateProfilePfx

Sets a PFX certificate profile.

Syntax

Set-CMCertificateProfilePfx
   [-Confirm]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Id <Int32>
   [-KeyStorageProvider <KeyStorageProviderSettingType>]
   [-NewName <String>]
   [-PassThru]
   [-SupportedPlatform <IResultObject[]>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMCertificateProfilePfx [-Confirm] [-Description ] [-DisableWildcardHandling]
 [-ForceWildcardHandling] -InputObject  [-KeyStorageProvider ]
 [-NewName ] [-PassThru] [-SupportedPlatform ] [-WhatIf] []
Set-CMCertificateProfilePfx [-Confirm] [-Description ] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-KeyStorageProvider ] -Name 
 [-NewName ] [-PassThru] [-SupportedPlatform ] [-WhatIf] []

Description

The Set-CMCertificateProfilePfx cmdlet changes the settings of a PFX certificate profile.

Examples

Example 1: Set a PFX certificate profile by name

PS C:\> Set-CMCertificateProfilePfx -Name "TestUpdate1" -Description "Update name to Test" -NewName "Test" -SupportedPlatform (Get-CMSupportedPlatform -Fast -Name "All Windows 10*Client")

This command updates the name of the PFX certificate profile named TestUpdate1 to Test for all Windows 10 Client platforms.

Example 2: Set a PFX certificate profile by ID

PS C:\> Set-CMCertificateProfilePfx -Id 16777453 -Description "Updated" -KeyStorageProvider InstallToSoftwareKeyStorageProvider -NewName "Test2"

This command updates the name of the PFX certificate profile with the ID 16777453 to Test2 and sets the key storage provider to install to Software Key Storage Provider.

Example 3: Set a PFX certificate profile by using the pipeline

PS C:\> Get-CMCertificateprofilePfx -Name "Test3" | Set-CMCertificateprofilePfx -Description "Updated"

This command gets the PFX certificate profile object named Test3 and uses the pipeline operator to pass the object to Set-CMCertificateProfilePfx, which updates the description of the object.

Required Parameters

-Id

Specifies the ID of a PFX certificate profile.

Type:Int32
Aliases:CI_ID, CIId
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a PFX certificate profile object. To obtain a PFX certificate profile object, use the Get-CMCertificateProfilePfx function.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of a PFX certificate profile.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Specifies a description for the PFX certificate profile.

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

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-KeyStorageProvider

Specifies the Key Storage Provider. Valid values are: - InstallToTPM_FailIfNotPresent

  • InstallToTPM_IfPresent
  • InstallToSoftwareKeyStorageProvider
  • InstallToNGC_FailIfNotPresent
Type:KeyStorageProviderSettingType
Parameter Sets:None, InstallToTPM_FailIfNotPresent, InstallToTPM_IfPresent, InstallToSoftwareKeyStorageProvider, InstallToNGC_FailIfNotPresent
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NewName

Specifies a new name for the PFX certificate profile.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SupportedPlatform

Specifies a supported platform object. To obtain a supported platform object, use the Get-CMSupportedPlatform cmdlet.

Type:IResultObject[]
Aliases:SupportedPlatforms
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IResultObject#SMS_ConfigurationPolicy