Hallo zusammen,
ich versuche PSU (2026.2.5.0) automatisiert zu installieren und scheitere bisher an dem Punkt der Lizensierung.
Laut docs:
You can use the PSULICENSE environment variable to set a license. The value of this environment variable needs to be the contents of the license file.
da habe ich versucht:
$licenseFile = 'E:\Install\bin\PowerShell Universal\PSULizenz.txt'
$license = (Get-Content -LiteralPath $licenseFile -Raw).Trim()
[Environment]::SetEnvironmentVariable( 'PSULICENSE', $license, [EnvironmentVariableTarget]::Machine )
----
[Environment]::GetEnvironmentVariable('PSULICENSE',[EnvironmentVariableTarget]::Machine)
<License>GANZZVIELLLLDAZWISCHENNNNNN</License>
Nach erneutem Start steht im Log aber :
[ERR][UniversalAutomation.StartupService] Failed to add license from environment variable.
System.ArgumentException: Invalid license specified. (Parameter 'license')
at Universal.Server.Services.LicenseService.Add(License license, Boolean ignoreExisting) in D:\a\powershell-universal\powershell-universal\src\Universal.Server\Services\LicenseService.cs:line 306
at UniversalAutomation.StartupService.LoadAuthenticationMethodsFromConfig() in D:\a\powershell-universal\powershell-universal\src\Universal.Server\Services\StartupService.cs:line 127
Wo ist mein Fehler oder kennt jemand einen anderen Weg der Lizensierung?
Gruß
Michael