Script Repository


Disable auto-logon for Web Interface Configurator

January 09, 2019
544

The script disables auto-logon for Adaxes Web Interface Configurator. Execute the script in Windows PowerShell on the computer where Adaxes service is installed. When prompted, specify credentials of the Adaxes service account (specified during Adaxes installation).

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

# 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
$configuratorSettings = $webuiConfigContainer.ConfiguratorSettings
$configuratorSettings.IsAutologonEnabled = $true
$webuiConfigContainer.ConfiguratorSettings = $configuratorSettings
$webuiConfigContainer.SetInfo()

Comments ( 0 )
No results found.
Leave a comment