Reset the password of the built-in administrator

2024/2/20 |

This article describes how to reset the password or disable multi-factor authentication for the built-in administrator.

In this article, you will learn how to:

  • Reset the password of the built-in administrator.
  • Disable multi-factor authentication for the built-in administrator.

At the end, you will be able to reset the password or disable multi-factor authentication for the built-in administrator.

Reset the password of the built-in administrator

  1. Open Windows PowerShell as an administrator, then enter the following commands:

     Stop-Service "CLEAR Engine"
     echo "reset admin credentials" > "C:\Program Files\Lucent Sky\CLEAR Engine\Startup\RunOnce.txt"
     Start-Service "CLEAR Engine"
    

The password of the built-in administrator [email protected] is now reset to lucentsky. This does not disable multi-factor authentication for the built-in administrator.

Disable multi-factor authentication for the built-in administrator

  1. Open Windows PowerShell as administrator and enter the following command to open the CLEAR Engine storage configuration file with the default text editor:

     (Select-Xml -Path "C:\Program Files\Lucent Sky\CLEAR Engine\SkyAnalyzer.config" -XPath "skyAnalyzer").Node.File | Invoke-Item
    

    Make sure the value to the MultiFactorAuthentication key is empty or false.

  2. In Windows PowerShell, enter the following commands:

     sqlcmd -S .\SQLEXPRESS -d SkyAnalyzer -Q "UPDATE Users SET MultiFactorAuthenticationKey = NULL WHERE Username = '[email protected]'"
    

Multi-factor authentication has been disabled for the built-in administrator [email protected].