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

Change auto-logon status for web interface configurator

January 24, 2025 Views: 28

The script enables or disables auto-logon for the web interface configurator. Execute the script in Windows PowerShell on the computer where Adaxes service runs. When prompted, enter the credentials of the Adaxes service account (specified during Adaxes installation).

Set the $enableAutoLogon variable to $true to enable auto-logon and to $false to disable it.

Edit Remove
PowerShell
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

$enableAutoLogon = $true # TODO: modify me

# Connect to the Adaxes service
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to the 'WebUI Configuration' container
$webuiConfigPath = $admService.Backend.GetConfigurationContainerPath("WebUIConfigurationContainer")
	
$credential = Get-Credential
$webuiConfigContainer = $admService.OpenObject($webuiConfigPath, $credential.UserName, $credential.GetNetworkCredential().Password, 0)

# Disable auto-logon
$configuratorConfig = $webuiConfigContainer.ConfiguratorConfig
$configuratorConfig.AutoLogonEnabled = $enableAutoLogon
$webuiConfigContainer.ConfiguratorConfig = $configuratorConfig
$webuiConfigContainer.SetInfo()
Comments 0
Leave a comment
Loading...

Got questions?

Support Questions & Answers