How to pass encryption login from PowerShell that calls maxl?
Hello,
We are using Essbase 21.6.0.0.413, as delivered with EPM 11.2.19. We use encrypted maxl keys for a number of functions, but we are trying something a little different, and it will not work.
We have a very mature PowerShell script that calls maxl like this:
$argumentsMaxl = $ProcessFolder+"Maxl\maxl1.mxl "+$EssUser+" "+$EssPwd+" "+$EssServer+" "+$EssbaseApp+" "+$EssbaseDB+" "+$SQLUser1+" "+$SQLPW1+" "+$Runtime+" "+$PlannedOutOfServiceAllocation[0]+" "+$PlannedStaffAllocation[0]+" "+ $SpoolLog
It was discovered that we were exposing the username and password by using $EssUser and $EssPwd, so I want to pass encrypted credentials. So I changed the mxl file to mxls and added the long login digits. In the PowerShell, I did a lot of experimenting, I came up with this as my best guess: