I'm trying to call mqsiprofile
from a powershell script and it is successful. However, when i run other mqsi commands like mqsilist
or mqsicreatebroker
, I am getting the below error:
The user environment was not adequately prepared to continue execution. Locate and run the profile supplied with the product. This file is called mqsiprofile, and is located in the bin subdirectory for the product.
I have the windows environment variable PATH
set to the bin
directory where mqsiprofile
command lies.
I tried the same from windows command prompt and all the commands were successful. It seems like the environment is not being persisted after the command execution in powershell.
Any suggestions?