Thank you so much UEMdev. That did the trick. Just curious - did something change between 9.0 and 9.2. The environment variables used to work.
Do you have any suggestions how to start an application upon logon. That used to work as well by adding a shortcut in the startup folder but now the shortcut is added but it never starts. I also tried to start it with a logon task but in this case the application starts before the profile and the settings are missing. The logon task is configured to run after profile archive import.
Thanks for your help! I appreciate it.