Problem with authentication

Product: PowerShell Universal
Version: 4.0.0 beta4


I want to use Windows authentication or Forms.
But for each configuration, I have this problem: Failed to communicate with security service.

After analysis, it does not fit in the authentication.ps1 file.

Example of authentication code :

It’s probably something I’m doing wrong.
How can I solve this problem?

Thank you for your help.


I add that I am on SQL Server and that I have moved the RepositoryPath.
PSU is installed in a Windows service and is run via a user account.

Log :

I found, it was related to the declaration of my environments in the settings.ps1 file.