Locked Not authorized to access using TFPT at Command Line

  • Saturday, January 01, 2011 9:35 PM
     
     

    I have been trying to use TFPT at the command line with both the scorch and treeclean commands, but each time I attempt to execute the command, I get an error message stating that "TF30063: You are not authorized to access <TFS Server>\DefaultCollection". I am currently logged into my TFS Server using Visual Studio 2010 over a VPN session. When I launch Visual Studio 2010, I am prompted for login credentials and I can therefore access TFS via Team Explorer. In addition, I know that the tf command supports passing a /user switch in order to ensure that user credentials are passed, but how do I force TFPT to also recognize these credentials since the /user switch does not seem to be supported nor accepted as a valid switch?

    I tried reviewing this earlier forum post, but it seems that the links are broken to the posting referring to the /server switch:  http://social.msdn.microsoft.com/Forums/en-US/tfspowertools/thread/c7b4a88e-c612-4a51-a5ae-83d08345af45

    Thanks.

All Replies

  • Monday, January 03, 2011 7:43 AM
    Moderator
     
     

    Hi vs2010junkie,

    Thank you for your question.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
     
    Thank you for your understanding and support.

    Best Regards,


    Cathy Kong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Monday, January 03, 2011 1:06 PM
     
     

    Hi, you can add the network credentials to "Stored User Names and Passwords" in Windows (control panel - user accounts - manage your network passwords). You have to specify the address of the TFS server, the user name and the password. Further accesses to TFS from any windows app (including tfpt.exe) should be detected by the OS and the credentials should be provided automatically.

     

    Hope it helps...

    Best regards


     

  • Monday, January 03, 2011 2:53 PM
     
     

    I would prefer to be able to pass these credentials at the command line as I can with the TF.exe command (that way I do not have to constantly update my credentials whenever my password changes).  Is there any such switch to support this with TFPT.exe as well?

     

    Thanks.

  • Wednesday, January 05, 2011 6:39 AM
    Moderator
     
     Answered

    Hi vs2010junkie,

    Thanks for your feedback!

    Please try adding your TFS credentials to the Windows Credentials Manager.  Control Panel->User Accounts->Credentials Manager.

    I think the switch is /login, not /user.

    tfpt scorch ./noprompt /recursive /login: DOMAIN\user, password.

    Hope it helps!

    Best Regards,


    Cathy Kong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, January 07, 2011 9:31 AM
    Moderator
     
     

    Hi vs2010junkie,

    Is your issue solved?

    Best Regards,


    Cathy Kong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, August 03, 2012 8:51 PM
     
     

    I'm having a similar issue when I use TF Get, I'm an authorized user... Here is what I've tried...

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE>tf Get $/root/Database /force /noprompt /login:domain\user, mypassword

    and I get this... TF30063: You are not authorized to access tfsserver\somedefaultfolder....

    I've tried with the local path as well, but still same error message.