We use cookies to improve your experience.
By your continued use of this site you accept such use.
For more details please see our privacy policy and cookies policy.

Script repository

Enable auto-logon for Web interface

July 04, 2023 Views: 305

The script enables the auto-logon feature for the specified Web interface. Execute the script in Windows PowerShell on the computer where Adaxes ADSI provider is installed. For details on how to install it, see https://adaxes.com/sdk/HowDoI.InstallAdsiProvider/. When prompted, specify the credentials of the Adaxes service account (specified during Adaxes installation).


  • $webApplicationName - Specifies the name of the Web interface to enable auto-logon for.
  • $serviceHost – Specifies the host name of the computer where Adaxes service is installed.
Edit Remove

$webApplicationName = "HelpDesk" # TODO: modify me
$serviceHost = "localhost" # TODO: modify me

# Connect to the Adaxes service
$ns = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$service = $ns.GetServiceDirectly($serviceHost)

# Prompt for credentials.
$credential = Get-Credential

# Get WebUI configuration
$webuiConfigPath = $service.Backend.GetConfigurationContainerPath("WebUIConfigurationContainer")
$webuiConfigContainer = $service.OpenObject($webuiConfigPath, $credential.UserName, $credential.GetNetworkCredential().Password, 0)
$config = $webuiConfigContainer.GetConfig($webApplicationName)

# Update autologon
$json = '{"autoLogon": { "logonType": 1 }, "useCommonSignInSettings": false}'
$config.FromJson($null, $json)
Comments 0
Leave a comment

Got questions?

Support Questions & Answers