I think -or is being incorrectly used here. By this logic, $PORT always evaluates to True (rather than picking up 8060 if no $HA_PORT is passed in - I think the intention here was to perform NULL Coalesce?)
So you get this error every time:
The value of port is invalid. Please set an integer bigger than or equal to 0 and less than or equal to 65535.
Since the expression turns out to be .\dmgcmd.exe -EnableRemoteAccess TRUE.
The current logic that implements passing in
$HA_PORT
from thedocker run
isn't properly making it todmgcmd.exe
due to this line of code:I think
-or
is being incorrectly used here. By this logic,$PORT
always evaluates toTrue
(rather than picking up 8060 if no$HA_PORT
is passed in - I think the intention here was to perform NULL Coalesce?)So you get this error every time:
Since the expression turns out to be
.\dmgcmd.exe -EnableRemoteAccess TRUE
.Possible Solution