Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Hiding login and password values in net use command

I have an environment that has two variables, LOGIN and PASSWORD, assigned to a project. Both variables are defined as Type: Standard Variable, Action: Assign Hidden, On Project: Suppress Display, Value: <value>. When I execute the following net use command, it appears that ${LOGIN} and ${PASSWORD} are not being read in. What am I missing? I am using Build Forge 7.1.3.2 and am attempting to copy the file between 2 Windows servers.

net use g: /delete
net use g: \\11.222.33.44\f$ ${PASSWORD} /user:testserver02\${LOGIN}
copy e:\projects\Test.zip g:\deployment_package
net use g: /delete

0 votes



One answer

Permanent link
If an assign hidden variable is detected, it will not expand any variables in that command. Otherwise the password would be echoed into the build log.

~Spencer

I have an environment that has two variables, LOGIN and PASSWORD, assigned to a project. Both variables are defined as Type: Standard Variable, Action: Assign Hidden, On Project: Suppress Display, Value: <value>. When I execute the following net use command, it appears that ${LOGIN} and ${PASSWORD} are not being read in. What am I missing? I am using Build Forge 7.1.3.2 and am attempting to copy the file between 2 Windows servers.

net use g: /delete
net use g: \\11.222.33.44\f$ ${PASSWORD} /user:testserver02\${LOGIN}
copy e:\projects\Test.zip g:\deployment_package
net use g: /delete

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 02 '12, 11:30 a.m.

Question was seen: 11,974 times

Last updated: May 02 '12, 11:30 a.m.

Confirmation Cancel Confirm