Reset secure storage

Adaxes stores all credentials and other sensitive data in a secure storage. If an Adaxes service fails to get access to the storage, it will hang in the Awaiting authorization state and will not start. In a multi-server environment, access to the secure storage must be provided by any Adaxes service that belongs to the configuration set. So, first make sure all Adaxes services are up and running and there are no communication issues among them. If the authorization mechanism doesn't work and your Adaxes service fails to obtain access, you can reset the secure storage.


Resetting the secure storage will erase all the credentials used by Adaxes. In a multi-server environment, the credentials will be erased for all Adaxes services in the configuration set.

To reset the secure storage, execute the below script on the computer where the Adaxes service is installed.


Only Adaxes service administrators have the rights to reset the secure storage.


# Prompt for credentials.
$credential = Get-Credential

# Bind to the Adaxes service.
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$nameSpace = $admNS.OpenDSObject("Adaxes:", $credential.UserName,` 
    $credential.GetNetworkCredential().Password, 0)

# Reset the storage.
$nameSpace.Put("adm-ResetSecureStorage", $True)