how to remove TFS workspace mapping for another user

后端 未结 9 1486
梦如初夏
梦如初夏 2020-12-04 19:13

I am using Visual Studio 2010. Some months back I was using some \'ABC\' TFS user to connect to TFS and mapped some folders on my local drive. Now my previous user \'ABC\' i

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 19:32

    1.First we will check the list of workspaces from VS 2015 Developer command prompt,

    Ex - tf workspaces /owner:*

    2.Now we will get the xml format from VS 2017 Developer command prompt which will have ‘owner id’ for the particular workspace,

    Example 1 - tf.exe workspaces /owner:* /computer:ComputerName /collection:https://YOUR-TFS-URL.visualstudio.com /format:xml

    3.We can now delete the workspace for the particular user,

    Example 1- Tf workspace /delete ComputerName;email@email.com /server:"https://URL.visualstudio.com"

    OR

    Example 2 - Tf workspace /delete ComputerName;1e178c77-bb8b-6f05-bf99 /server:https://URL.visualstudio.com

    (Where 1e178c77-bb8b-6f05-bf99 is ID of the workspace which you get from Step 2 XML format)

    4.Again we will check the list of workspaces from VS 2015 Developer command prompt,

    Ex - tf workspaces /owner:*

提交回复
热议问题