Skip to content

Add-DattoSecretStore

SYNOPSIS

Adds a local secret store using the Microsoft.PowerShell.SecretStore module.

SYNTAX

Add-DattoSecretStore [[-Name] <String>] [[-ModuleName] <String>] [<CommonParameters>]

DESCRIPTION

This function adds a local secret store using the Microsoft.PowerShell.SecretStore module. Checks if the secret store is installed and install if not found. The function also sets the secret store configuration for the default vault.

EXAMPLES

EXAMPLE 1

Adds a local secret store named 'Datto_SecretStore' using the Microsoft.PowerShell.SecretStore module.

Add-DattoSecretStore

EXAMPLE 2

Adds a local secret store named 'Custom_SecretsVault' using the 'Custom.SecretStore' module.

Add-DattoSecretStore -Name 'Custom_SecretsVault' -ModuleName 'Custom.SecretStore'

PARAMETERS

-Name

The name of the secret store to add. Defaults to 'Datto_SecretStore'.

Type: String
Parameter Sets: (All)
Aliases:

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

-ModuleName

The name of the module to use for the secret store. Defaults to 'Microsoft.PowerShell.SecretStore'.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Microsoft.PowerShell.SecretStore
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

N/A

OUTPUTS

N/A

NOTES

N/A

https://datto-dbpool-refresh.kentsapp.com/Internal/apiKey/Add-DattoSecretStore/