Hi,
I can’t seem to pass username and password to a powershell script properly.
I setup a task like this:
-NoProfile -NoExit "$user = '$EffectiveUsername$';$pass = '$EffectivePassword';(echo $user $pass)"
This only returns the password, does not return username.
If I set this to:
-NoProfile -NoExit "$user = '$EffectiveUsername$';$pass = '$EffectiveUsername$';(echo $user $pass)"
This returns the username twice as expected, no problems. (NOTE, both variables are are set to return username).
However, this works as expected:
-NoExit echo $EffectiveUsername$ $EffectivePassword$
Bug? Am I missing something?