Script repository

Enable auto-logon for web interface

Updated on: Jan 18, 2026, Views: 1742

Web interface configuration

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 Install Adaxes ADSI Provider. When prompted, specify the credentials of the Adaxes service account (entered during Adaxes installation).

Parameters

  • $webApplicationName - the name of the web interface to enable auto-logon for.
  • $serviceHost – the host name of the computer where Adaxes service is installed.
Import-Module Adaxes

$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 web interface configuration.
$webuiConfigPath = $service.Backend.GetConfigurationContainerPath("WebUIConfigurationContainer")
$webuiConfigContainer = $service.OpenObject($webuiConfigPath, $credential.UserName, $credential.GetNetworkCredential().Password, 0)
$config = $webuiConfigContainer.GetConfig($webApplicationName)

# Update auto-logon
$json = '{"autoLogon": { "logonType": 1 }, "useCommonSignInSettings": false}'
$config.FromJson($null, $json)

Comments 0

You must be signed in to comment.

    Got questions?

    Support Questions & Answers

    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.