TFSProvider

Summary

TFSProvider allows you to browse a TFS server as in Windows Explorer.
At the root of the provider you can access:
  • Workitem
  • SourceControl
  • TeamProject

In each subset it is possible to navigate to other elements.

If you are in a TFSProvider orders PsTFS not need to setting a variable $ tfs

Parameters

Name Description Sample
-name Provider name
-root Url server http://colmar:8080
-psprovider Provider type TFSProvider

Sample : Add provider

new-psdrive -name TFS -root "http://colmar:8080" -psprovider TFSProvider

PS C:\> cd tfs:

PS TFS:\> dir

Sample : Workitems route of a project

PS TFS:\> cd TEAMPROJECT
PS TFS:\TEAMPROJECT> dir

Name
----
Demo23
DemoAuto
MyDemo
test
VSTS.Noham


PS TFS:\TEAMPROJECT> cd MyDemo
PS TFS:\TEAMPROJECT\MyDemo> Get-ChildItem

Alias                                                       Element
-----                                                       -------
WI                                                          WORKITEM
SC                                                          SOURCECONTROL
MP                                                          MEMBERSPROJECT
DC                                                          DOCUMENTS
BL                                                          BUILD


PS TFS:\TEAMPROJECT\MyDemo> cd WI
PS TFS:\TEAMPROJECT\MyDemo\WI> Get-ChildItem | Format-Table

                     Id Type                    Title                   State                   Reason
                     -- ----                    -----                   -----                   ------
                      0                         Type
                      0                         State
                     46 Task                    Set up: Set Permissions Closed                  Completed
                     47 Task                    Set up: Migration of... Closed                  Completed
                     48 Task                    Set up: Migration of... Closed                  Completed
                     49 Task                    Set up: Set Check-in... Closed                  Completed
                     50 Task                    Set up: Configure Build Closed                  Completed
                     51 Task                    Set up: Send Mail to... Closed                  Completed
                     52 Task                    Create Vision Statement Closed                  Completed
                     53 Task                    Set up: Create Proje... Closed                  Completed
                     54 Task                    Create Personas         Closed                  Completed
                     55 Task                    Define Iteration Length Closed                  Completed
                     56 Task                    Create Test Approach... Closed                  Completed
                     57 Task                    Brainstorm and Prior... Closed                  Completed
                     58 Task                    Brainstorm and Prior... Closed                  Completed
                     59 Task                    Set up: Create Proje... Closed                  Completed
                     60 Task                    Create Iteration Plan   Closed                  Completed
                    257 Task                    test                    Closed                  Completed
                    425 Bug                     My Bug Demo PsTFS       Active                  New
                    426 Bug                     My Bug Demo PsTFS 2     Active                  New


PS TFS:\TEAMPROJECT\MyDemo\WI>

Sample : Recovery of members of a project

PS TFS:\TEAMPROJECT\MyDemo> dir

Alias                                                       Element
-----                                                       -------
WI                                                          WORKITEM
SC                                                          SOURCECONTROL
MP                                                          MEMBERSPROJECT
DC                                                          DOCUMENTS
BL                                                          BUILD


PS TFS:\TEAMPROJECT\MyDemo> cd MP
PS TFS:\TEAMPROJECT\MyDemo\MP> dir | ft

 TypeMember AccountName     Deleted Description DisplayName Distinguish Domain      MailAddress MemberOf    SecurityGro
                                                            edName                                                   up
 ---------- -----------     ------- ----------- ----------- ----------- ------      ----------- --------    -----------
        TFS                   False Members ... Build Se...             vstfs://...             {S-1-9-1...        True
        TFS                   False Members ... Readers                 vstfs://...             {S-1-9-1...        True
        TFS                   False Members ... Contribu...             vstfs://...             {S-1-9-1...        True
        TFS                   False Members ... Project ...             vstfs://...             {S-1-9-1...        True
        Wss Full Con...       False Has full... Full Con...                                                       False
        Wss Design            False Can view... Design                                                            False
        Wss Contribute        False Can view... Contribute                                                        False
        Wss Read              False Can view... Read                                                              False
        Wss Limited ...       False Can view... Limited ...                                                       False


PS TFS:\TEAMPROJECT\MyDemo\MP> cd Contributors
PS TFS:\TEAMPROJECT\MyDemo\MP\Contributors> dir | ft

AccountName     Deleted Description DisplayName Distinguish Domain      MailAddress MemberOf    SecurityGro Sid
                                                edName                                                   up
-----------     ------- ----------- ----------- ----------- ------      ----------- --------    ----------- ---
Noham             False             Noham       LOCAL://... COLMAR                  {}                False S-1-5-21...
Choulant          False             Choulant    LOCAL://... COLMAR                  {}                False S-1-5-21...
Antonin           False             Antonin     LOCAL://... COLMAR                  {}                False S-1-5-21...


PS TFS:\TEAMPROJECT\MyDemo\MP\Contributors>

Sample : Using a command PsTFS with TFSProvider (Add-Files)

PS TFS:\TEAMPROJECT\MyDemo\SC> dir

Name                                                                                                           ItemType
----                                                                                                           --------
  dev                                                                                                            Folder
  EVALUANT.CAPSULETECH.WI.WFCL.sln                                                                                 File
  EVALUANT.CAPSULETECH.WI.WFCL.vssscc                                                                              File
  Int                                                                                                            Folder
  PROD                                                                                                           Folder
  test.txt                                                                                                         File
  testcs.txt                                                                                                       File
  trace.txt                                                                                                        File


PS TFS:\TEAMPROJECT\MyDemo\SC> Add-Files -source "c:\tt.txt"
PS TFS:\TEAMPROJECT\MyDemo\SC> dir

Name                                                                                                           ItemType
----                                                                                                           --------
  dev                                                                                                            Folder
  EVALUANT.CAPSULETECH.WI.WFCL.sln                                                                                 File
  EVALUANT.CAPSULETECH.WI.WFCL.vssscc                                                                              File
  Int                                                                                                            Folder
  PROD                                                                                                           Folder
  test.txt                                                                                                         File
  testcs.txt                                                                                                       File
  trace.txt                                                                                                        File
  tt.txt                                                                                                           File


PS TFS:\TEAMPROJECT\MyDemo\SC>

Last edited Nov 7, 2009 at 1:48 PM by pc152, version 2

Comments

No comments yet.