Update-CredentialsInPSConfigFile

SYNOPSIS

Allows you to renew the certificate or saved passwords.

SYNTAX

Update-CredentialsInPSConfigFile [-RenewSelfSignedCert] [[-RenewSavedPasswords] <String[]>] [-Force]
 [<CommonParameters>]

DESCRIPTION

Allows you to renew the certificate or saved passwords.

EXAMPLES

EXAMPLE 1

Update-CredentialsInPSConfigFile -RenewSavedPasswords All

PARAMETERS

-RenewSelfSignedCert

Creates a new self signed certificate, and re-encrypts the passwords.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-RenewSavedPasswords

Re-encrypts the passwords for the current PS Edition. Run it in PS core and desktop to save both version.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: All
Accept pipeline input: False
Accept wildcard characters: False

-Force

Will delete the config file before saving the new one. If false, then the config file will be renamed.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES