Reputation: 1000
I am using microsoft tfs command line client. Its CLC zip is obtained from here.
My zip is = TEE-CLC-14.134.0
. Extracted in dir = C:\mstfscmdclient
Issue - Whenever TFS user password has double quotes in them, tf commands fail.
Example -
call mstfscmdclient\tf.cmd workspaces /collection:<my tfs server url> /login:<my tfs username>,<my tfs password>
This command fails when passwords are with double quotes like Abcd@"2018, Abc"&<=2018
etc.
Same command works when passwords are without double quotes like Abcd@2018''
, A~``$%^&<=@18b etc
.
Error -
An error occurred: Access denied connecting to TFS server <my tfs server url> (Authenticating as <my tfs username>)
Please note that I must use CLC client only and must execute TFS operations using tf.cmd only. This is approved at my org level and cant be changed. So, solutions from Visual Studio, tf.exe etc tools are not useful for me.
I have gone through following official documentation but did not get details about password policies or any limitations.
[ Azure DevOps & TFS / Azure Repos / TFVC / Reference / TFVC command reference / Use Team Foundation version control commands]
and
[ Docs / Previous Versions / Visual Studio / Team Foundation Version Control Command-Line Reference / Tf Command-Line Utility Commands]
Edit 2 - This question is not duplicate of Escaping special characters in cmd.
Many passwords are not working with the solution proposed in it.
For eg - Year<"%^&*2018
did not work when called tf.cmd
with "Year<""%^&*2018", "Year<""%^&&*2018", "Year<""%^^&&*2018", "Year<""%%^^&&*2018"
.
Upvotes: 0
Views: 291