I am trying to automate the TFS build definition dump process. TFPT has buildefinition /dump option which seems to be very handy. But when I execute the command, it prompts me to provide username and password to access the TFS. So I tried the following command:
tfpt builddefinition /dump project\definition /format:detailed /collection:xxx:8080/xxx /filepath:D:\log1.txt /login:Domain\id
This would fill in the username section in the credential box automatically and I would be required to fill in the password. But when I tried
tfpt builddefinition /dump project\definition /format:detailed /collection:xxx:8080/xxx /filepath:D:\log1.txt /login:Domain\id,password
I get the following error: /Dump expects one argument but 2 were provided.
The /login switch is not provided as an option for builddefinition. Is there a way I can automate the part where I need to give TFS username and password every time I invoke the TFPT command??