Publish-PASDiscoveredAccount
Publish-PASDiscoveredAccount
SYNOPSIS
Onboard a discovered account
SYNTAX
Publish-PASDiscoveredAccount [-id] <String> [-PlatformID] <String> [-safeName] <String>
[[-shouldReconcileAccount] <Boolean>] [[-defaultPassword] <SecureString>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Onboard a discovered account to a target platform into a target safe. Optionally set the account to be reconciled, and/or with a default password.
EXAMPLES
EXAMPLE 1
$password = Read-Host -AsSecureString -Prompt "defaultPassword value"
Publish-PASDiscoveredAccount -id 66_6 -PlatformID WinDomain -safeName SomeSafe -defaultPassword $password
Onboard discovered account with id 66_6 to SomeSafe with the provided default password
EXAMPLE 2
Publish-PASDiscoveredAccount -id 19_1 -PlatformID UnixSSH -safeName UNIX
Onboard discovered account with id 19_1 to the UNIX safe using the UnixSSH platform, using the automatically generated password.
EXAMPLE 3
Publish-PASDiscoveredAccount -id 44_9 -PlatformID WinDomain -safeName TargetSafe -shouldReconcileAccount $true
Onboard discovered account with id 44_9 to TargetSafe and marks it for reconciliation.
EXAMPLE 4
Get-PASDiscoveredAccount -platformType 'Windows Domain' | Publish-PASDiscoveredAccount -PlatformID WinDomain -safeName TargetSafe -WhatIf
Shows what would happen if every discovered Windows Domain account was onboarded to TargetSafe using the WinDomain platform, without actually onboarding them.
PARAMETERS
-id
Discovered account ID
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-PlatformID
Target platform ID
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-safeName
Target safe name
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-shouldReconcileAccount
Specify if the account should be reconciled
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-defaultPassword
The default password value
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
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
NOTES
RELATED LINKS
https://pspas.pspete.dev/commands/Publish-PASDiscoveredAccount