oscomponent.environment.variable_user_<localuser> is not working in windows
search cancel

oscomponent.environment.variable_user_<localuser> is not working in windows

book

Article ID: 376663

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

 We are trying to set below user variable in agentparm.txt and use the variables in the job run by the user - <localuser>. The variables are used in the script executed by the job in Autosys. The issue is the job is not able to pick the variable values specified in the below specified file.

oscomponent.environment.variable_user_<localuser>=C:/temp/localuser_variable.txt

Cause

User in windows is by default called with domain as an example localuser is called as <domain\localuser>

Resolution

In Windows, user is by default called with "/" or "\"slash domain which will not align with the way "oscomponent.environment.variable_user_<localuser>". Agent code ignores the user environment variable parameter in such scenarios. This is the way windows operating system environment behaving.