Skip to content

Reset-PSSMSecretStore

SecretManagement: Resets the SecretStore

#Requires -Version 5.1
#Requires -Modules Microsoft.PowerShell.SecretStore

Process {
    try {
        $result = Reset-SecretStore -PassThru -Force -Confirm:$false -ErrorAction Stop | Select-Object *
        if ($null -ne $result) { $result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force }
    }
    catch { throw }
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.