Home » Visual StudioRSS

TFUsers Command Line Tool in TFS Power Tools

hello! I want to know: what is the TFUsersCommand Line Tool in TFS Power Tools and how should I use it?. I have search about this a lot and I cannot find anything.

 

  thank you!

 

17 Answers Found

 

Answer 1

Hi cecilia,

 

According your description, do you mean the Team Foundation Power Tool(TFPT.EXE) Tool? If I misunderstand anything here, please don’t hesitate to correct me.

 

The Command line tool that you can use to work with files and directories under version control, team projects, and work items. Some commands display a graphical user interface when run.

 

For more information about it, please on the machine which installed TFS Power Tools, click Start>> All Programs>> Team Foundation Server 2010 Power Tools>> Help, to get the detailed introduction.

 

Answer 2

hi John,

  thank you for your answer. I'm investigating what happens in TFS when a user is removed from the Active Directory (for ex. when he leaves the company), which are the possible errors or malfunctions that I can expected, and I came across these articles:

 

http://www.go4answers.com/Question/michael-remove-user-tfs-tfusers-9839.aspx

http://social.msdn.microsoft.com/Forums/en/tfsadmin/thread/4a632261-7afc-4f85-8060-96312d447ab3

 

In both of them, it is mentioned these "TFUsersCommand Line Tool in TFS Power Tools ". I have seen the commands that they offer, but I do not find a command to make this removal.

I hope you understand now what I meant,

 

  regards!

 

Answer 3

Hi cecilia,

 

Thanks for your reply,

 

I sure that the TFUsers Command Line Tool in TFS Power Tools mean TFPT.EXE.

 

As far as I know that it can’t achieve the remove.

 

Answer 4

Hi John,

 

  thanks again for your answer!....I read your answer....so? is the information from the links I mentioned before wrong?? Is there another way to remove a TFS user??

 

thanks and best regards,

 

Answer 5

Hi cecilia.alvarez,

 

Thanks for your reply.

 

I want to confirm with you that: what’s the “remove a TFS user” mean?

1        Remove the user form Team Project collections(Users and Groups) or Team Projects(Users and Groups)?

2        Remove a user from AD?

3        Other?

 

Answer 6

Hi John,

 thanks for your replay. As I specified in an earlier answer:

 "...I'm investigating what happens in TFS when a user is removed from the Active Directory (for ex. when he leaves the company), which are the possible errors or malfunctions that I can expected within TFS... "

  I understand that when a user is removed from Active Directory, it has to be also deleted from TFS, in order to update the display of names in work item assignment fields to reflect these changes made in Active Directory. I came across with some articles, which mentioned these "TFUsersCommand Line Tool in TFS Power Tools " to do the TFS user removal. I have seen the commands that the tools offer, but I do not find a command to remove the TFS user (as the articles explaint).

 

I hope this help you to understand!

 

  regards!!

 

 

 

Answer 7

Hi cecilia.alvarez,

 

Thanks for your explain.

 

When a TFS user has just been removed from Active Directory, we will find that this user also exist in TFS’ DB and even can assign to this user when we create a new Work Item, this because TFS’ DB and the Active Directory have not updated synchronously.

 

After them had updated synchronously(one or two hours), TFS’ DB find that this user already be removed, then TFS’ DB will remove this user from TFS(users or groups), but retain the history about this user. For example, after them had updated synchronously, we will find that this user removed in Assigned To list box when we create a new Work Item, but will not affect the Work items which assigned to this user(created before).  

 

For this issue, the user will be removed from Assigned To Field automatically after TFS’ DB had updated synchronously with Active Directory.

 

If we’d like to remove a TFS user from Active Directory, we should remove the user from TFS first, then remove from Active Directory.

 

Answer 8

Really clear explanation....now...in your last sentence you wrote:

"If we’d like to remove a TFS user from Active Directory, we should remove the user from TFS first, then remove from Active Directory."

how do you do to remove the user from TFS first? you should remove the user from the user groups that he belongs to?

 

another question: is the same when you remove a user from AD and to deactivate it from AD? does TFS works in the same way (synchronization)?

 

thanks for your support!

 

  regards!

 

Answer 9

Hi cecilia.alvarez,

 

I mean that if we will to remove a user from AD, and this user is a TFS user(belong to TFS user groups), in this case, we should remove this user from TFS user groups first, then remove it from AD.

 

When you remove a user from AD, TFS’ DB update and AD will be synchronized regularly update(within an hour or two).

 

Answer 10

hi John,

 

 with all you have explaint....what this "TFUsersCommand Line Tool in TFS Power Tools " do is to remove the user from every TFS groups that he belongs to?

 once the user is removed in the AD and in all the TFS groups, do you know if the work items that were assigned originally to this user will have an validation error on the assigned to field when these work items are open?

 

 one more question: is the same when a user is removed from AD and to deactivate the user from AD? does TFS works in the same way (synchronization)?

 

thanks for your support!

 

  regards!

 

Answer 11

Hi cecilia.alvarez,

 

For first question: TFUsers Command Line Tool is a command line tool which TFS Power Tool provide, that you can use to work with files and directories under version control, team projects, and work items. Some commands display a graphical user interface when run. Consists of 20 commands that provide supplemental functionality for use within the Microsoft Visual Studio Application Lifecycle Management environment. For more information about it, please on the machine which installed TFS Power Tools, click Start>> All Programs>> Team Foundation Server 2010 Power Tools>> Help>> Team Foundation Power Tool(TFPT.EXE) Tool, to get the detailed introduction.

 

Second question: Once a user removed from TFS and AD, there have any error in TFS, TFS retain all the historical information related to this user.

 

Third question: what’s your “does TFS works in the same way(synchronization)?” mean? Could you provide detailed information?

 

Answer 12

Hi John,

 

  For the first answer: I understand what you have explaint, I only wanted to understand the solutions provided here:

- http://www.go4answers.com/Question/michael-remove-user-tfs-tfusers-9839.aspx

- http://social.msdn.microsoft.com/Forums/en/tfsadmin/thread/4a632261-7afc-4f85-8060-96312d447ab3

  But I think with your explanation I can close this theme.

 

  For the third answer: please, look at this other discussion that I have started some time ago:

http://social.msdn.microsoft.com/Forums/en-US/tfsworkitemtracking/thread/8ef74de1-7969-4d96-a04d-07e294a499e6/#c183b7b6-a92c-4b2a-88df-c958f862642f

 

regards!!

 

Answer 13

Hi cecilia.alvarez,

 

Thanks for your reply.

 

For this issue, I told you as far as I know.

 

So I suggest you to do a test yourself for this scenario.

 

Answer 14

Hi John,

  thanks for your replay. I tried to do a test, but the user that was deactivated in the AD never got deactivated in TFS. The "active" field in table [Tfs_Configuration].[dbo].[tbl_security_identity_cache] did not change to 0 (false meaning the user is not active). So, the synchronization when a user is deactivated in AD does not work properly....or works different from when a user is removed. do you know something about this?

 

regards!!

 

 

Answer 15

Hi cecilia.alvarez,

 

According your description, you mean that if the user be deleted from AD,  DB will update synchronously with AD(“active” change to 0), but if the user be deactivated in AD, this will not affect DB, the “active” also is 1 in DB’s table?

 

I am currently looking into this issue and will give you an update as soon as possible. If you have further research of this issue, please share you experience.

 

Thank you for your understanding and support.

 

Answer 16

Hi John,

 

    I can only affirm what I have tried to test: the synchronization between AD and TFS in the case of a deactivation of a user (in the AD) did not work.

I had not test the case of deleting a user in the AD and then be sure that the synchronization occured.

 

    The only research I have is the test I have done (or tried to do):

http://social.msdn.microsoft.com/Forums/en-US/tfsworkitemtracking/thread/8ef74de1-7969-4d96-a04d-07e294a499e6/#c183b7b6-a92c-4b2a-88df-c958f862642f

 

  Thank YOU for your understanding and support!

have a nice weekend!

 

 

Answer 17

Hi cecilia.alvarez,

 

Thanks for sharing your experience.

 

I can affirm that DB update synchronously with AD in this case which a TFS user removed from AD.

 

For the deactivation scenario, I will give you a reply ASAP.

 

Have a nice weekend too!

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter