New-PASPlatformSecret

New-PASPlatformSecret

SYNOPSIS

Generates a secret for a platform.

SYNTAX

New-PASPlatformSecret [-Platformid] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Generates a new secret for a specific platform.

Requires CyberArk Self-Hosted version 15.2 or higher.

EXAMPLES

Example 1

New-PASPlatformSecret -Platformid SomePlatform

Generates a secret for the platform with id SomePlatform.

Example 2

New-PASPlatformSecret -Platformid WinDomain -WhatIf

Shows what would happen if a new secret was generated for the “WinDomain” platform, without actually generating it.

Example 3

Get-PASPlatform -Active $true | New-PASPlatformSecret

Generates a new secret for every currently active platform, with the platform id supplied via the pipeline.

PARAMETERS

-Platformid

The unique id of the platform to generate a secret for.

Type: String
Parameter Sets: (All)
Aliases: id

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
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

-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

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

System.String

OUTPUTS

System.Object

NOTES

https://pspas.pspete.dev/commands/New-PASPlatformSecret

https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/generate%20secret%20for%20platform.htm