Change computer name for a TFS Workspace

前端 未结 15 1580
青春惊慌失措
青春惊慌失措 2020-12-07 08:57

My System Administrator renamed my computer. So where it was \"MyLaptop2\" it is now just \"MyLaptop\".

So now all my source control bindings and checked out files

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 09:16

    Vaccano was correct, however, I needed the workspace name after the UpdateCompterName switch. In my case the workspace was the old machine name.

    If you don't know your workspace name you can find all workspace names using:
    tf workspaces /owner:* /computer:* /server:http://MyServer:8080/tfs/MyCollection

    So I ended up with the following.
    tf workspaces /updateComputerName:MyOldComputerName MyOldComputerName /s:http://MyServer:8080/tfs/MyCollection

提交回复
热议问题