Unlock-PSSMSecretStore
SecretManagement: Unlocks the SecretStore
#Requires -Version 5.1
#Requires -Modules Microsoft.PowerShell.SecretStore
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true)]
[securestring]$StorePassword
)
Process {
try {
Unlock-SecretStore -Password $StorePassword -ErrorAction Stop
[PSCustomObject]@{ Timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"; Status = "Success"; Message = "SecretStore unlocked" }
}
catch { throw }
}Password to unlock the SecretStore