I renamed my computer name, and now my TFS workspace is broken in Visual Studio 2012.
When I type:
tf workspaces /computer:ABOTONJIC-PC /owner:* /format:detailed
Workspace : ABOTONJIC-PC
Owner : wrongowner@test.com
Computer : ABOTONJIC-PC
Comment :
Collection : netuse.visualstudio.com\DefaultCollection
Permissions: Private
Location : Local
File Time : Current
But I need to have :
Owner : realowner@test.com
Computer : NEW-PC
Then I try:
tf workspaces /updateComputerName:ABOTONJIC-PC /collection:netuse.visualstudio.com/DefaultCollection
No workspace matching *;wrongowner@test.com on computer NEW-PC found in Team Foundation Server netuse.visualstudio.com/DefaultCollection.
So my question are :
- How to update computer name in my workspace?
- Why TFS still shows "wrongowner@test.com" in workspace although there is new email registered as "realowner@test.com"?
I had the same issue, also a VisualStudio.com account.
I've tried what the prompt told me :
Like so :
tf workspaces /updateComputerName:MyOldComputerName
but I got back :
In order to get the collection name I ran :
tf workspaces
which listed my collections and I got the name of my collection (...myusername.visualstudio.com...)
Then I ran :
tf workspaces /collection:http://myusername.visualstudio.com /updateComputerName:MyOldComputerName
Didn't work as I got this:
Then I noticed that I've typed
http
instead ofhttps
, corrected, retried and it worked!To get this to work in Visual Studio 2017 use the following (new location)
Hope this saves someone some time!
Look at this link
Vaccano said :
This command did the trick:
It had to be run from the computer I wanted to assign the workspace to (that is how it gets the new computer name. >
In
run in CMD as admin this command
example:
VS2017
I installed Sidekicks. It did not work for this issue, but this did: