Dear Community
Current Situation
In our company we have the following setup:
We have an Alteryx Desktop License for 20 users and an Alteryx Server License.
Issue
We now have issues with the license activation on the "application server". The license is activated machine wide and not in user context (as much as we understand). We did initially (run only once to clean up old license information) delete all the license information on the application server using PowerShell with AlteryxActivateLicenseKeyCmd.exe. Here is the delete script:
#######################################################################
# CONFIG
#######################################################################
$licTool = "D:\ProgramData\Alteryx\bin\AlteryxActivateLicenseKeyCmd.exe"
#######################################################################
# DELETE ALL ALTERYX LICENCES
#######################################################################
Write-Host "Delete All Licences" -ForegroundColor Cyan
& $licTool delete
Write-Host ""
And we have another script to apply the users license with the company license key and the users e-mail:
#######################################################################
# DEFINE CLASSES
#######################################################################
class License {
[int]$Id
[string]$Key
[string]$Product
}
class Employee {
[string]$Email
[int[]]$Licenses
}
#######################################################################
# DEFINE LICENCES
#######################################################################
$licences = @(
[License]@{Id = 1; Key = "AAAA-BBBB-CCCC-DDDD-EEEE-FFFF-GGGG-HHHH"; Product = "Alteryx Designer"},
[License]@{Id = 2; Key = "AAAA-BBBB-CCCC-DDDD-EEEE-FFFF-GGGG-HHHH"; Product = "Alteryx AI Suite"},
[License]@{Id = 3; Key = "AAAA-BBBB-CCCC-DDDD-EEEE-FFFF-GGGG-HHHH"; Product = "Alteryx AI Suite AddOn"}
)
#######################################################################
# DEFINE EMPLOYEES
#######################################################################
$employees = @(
# IM und IR
[Employee]@{Email = "user1@company.com"; Licenses = @(1)},
[Employee]@{Email = "user2@company.com"; Licenses = @(1,2,3)}
)
#######################################################################
# CONFIG
#######################################################################
# Path to AlteryxActivateLicenseKeyCmd.exe
# $licTool = "C:\Program Files\Alteryx\bin\AlteryxActivateLicenseKeyCmd.exe"
$licTool = "D:\ProgramData\Alteryx\bin\AlteryxActivateLicenseKeyCmd.exe"
#######################################################################
# GET USER E-MAIL
#######################################################################
$email = Read-Host -Prompt "Please enter your email address"
$employee = $null
# WE CHECK IF THE USER EXISTS IF NOT IN OUR LIST WE EXIT
foreach ($e in $employees) {
if($e.Email -eq $email){
$employee = $e
}
}
if($employee -eq $null){
Write-Host "Could not find user with email '$($email)'" -ForegroundColor Red
exit
}
#######################################################################
# APPLY LICENCES
#######################################################################
Write-Host "Current Configuration" -ForegroundColor Cyan
& $licTool config
Write-Host ""
Write-Host "List installed Licences" -ForegroundColor Cyan
& $licTool list
Write-Host ""
foreach ($licenseId in $employee.Licenses) {
$lic_key = $null
$prod_name = $null
# WE FIND THE LICENCE
foreach($licence in $licences){
if($licence.Id -eq $licenseId){
$lic_key = $licence.Key
$prod_name = $licence.Product
}
}
# WE APPLY THE LICENCE
if($lic_key -ne $null){
Write-Host "Activate lic '$($lic_key)' for '$($employee.Email)' for '$($prod_name)'" -ForegroundColor Cyan
& $licTool $lic_key $employee.Email
Write-Host ""
}
else{
Write-Host "Could not apply licence for '$($employee.Email)'" -ForegroundColor Red
Write-Host "Licence with ID '$($licenseId)' not found" -ForegroundColor Red
}
}
Write-Host "List installed Licences" -ForegroundColor Cyan
& $licTool list
Write-Host ""
This somehow does not work properly because we see issues when user2 did activate the license with his e-mail the activated license of user1 is impacted. What is the correct was to solve the issue with multiple activated licenses on the same "application server"? Did we miss something?
Thank you very much for your help and best regards.