Start-TssMekRotation
SYNOPSIS
Start a master encryption key rotation
SYNTAX
Start-TssMekRotation [-TssSession] <Session> [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Rotates the Secret Server master encryption key and marks the encrypted data, recorded sessions included, for re-encryption with the new key. Data is re-encrypted in the background. This changes how every Secret Server node reads encrypted data. Take a database and encryption key backup first. An IIS restart on every node is needed after the key rotation completes. Check CanRequestRotation, ProcessState and ErrorMessage on the output. Follow progress with Get-TssMekRotationInfo. This changes how Secret Server encrypts its data: a wrong or interrupted change can leave Secret Server or its secrets unreadable. The command writes that warning and asks OK to proceed? before it sends the request. -Force skips the question, and the confirmation prompt unless -Confirm is passed, for unattended runs; -WhatIf shows the request without sending it.
EXAMPLES
EXAMPLE 1
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Start-TssMekRotation -TssSession $session
Start a master encryption key rotation, after confirming the prompt
EXAMPLE 2
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Start-TssMekRotation -TssSession $session -WhatIf
Show the request that would start the rotation, without sending it
PARAMETERS
-TssSession
TssSession object created by New-TssSession for authentication
Type: Session
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Force
Skip the OK to proceed? question, and the confirmation prompt unless -Confirm is passed. The warning is still written.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 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
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
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
Thycotic.PowerShell.KeyManagement.MekRotation
NOTES
Requires TssSession object returned by New-TssSession
RELATED LINKS
https://thycotic-ps.github.io/thycotic.secretserver/commands/key-management/Start-TssMekRotation