Questions tagged [tfs-power-tools]

Team foundation server power tools is a set of tools that allow you to manipulate the TFS server from the command line, it also allows you access to many features that cannot be accessed from the gui.

176 questions
1
vote
1 answer

return Get-TfsItemHistory specific value

I am using powershell to try to make a email script that will send out a list of changesets and affected work items for the latest build I am doing this with Get-TfsItemHistory WorkspacePath -Version "LBuild 9.1.71.1~LBuild 9.1.72.1" -Recurse | …
Nick
  • 179
  • 4
  • 13
1
vote
0 answers

TFS 2015 Build: PowerTools - Unable to determine workspace

For our TFS 2015 vNext Build system I'm trying to check-out/edit/check-in a file with a PowerShell script. Currently the following lines are called within a custom Build-Step: #checkout file Add-TfsPendingChange -Edit -Item $localVersionPath -lock…
Alex
  • 11
  • 4
1
vote
2 answers

Copy 2015 build definition with tfpt

I have an build definition that will be used for many projects. But when saving to template it's still "locked" to the project. So I'm trying to use tfpt to clone the definition to a new project. PS C:\> tfpt builddefinition…
roady
  • 597
  • 2
  • 6
  • 20
1
vote
4 answers

TFS 2015 - tfpt Create new Team Project

Trying to create a powershell script to create a new project in Team Foundation Server 2015. When running the script I get the message: The project collection does not have a default location for creating project portal sites configured. Either…
roady
  • 597
  • 2
  • 6
  • 20
1
vote
2 answers

Deny workitem workflow editing

We are using tfs 2013 update 4. One of our colleagues downloaded TFS PowerTools by itself and started to edit workflow and fields of our projects. Is there any way to deny this functional for him? Hi is not a project administrator, not TFS…
1
vote
1 answer

TFS Power Tool (tfpt) update datetime field syntax

I'm attempting to use Team Foundation Power Tools to update a custom datetime field and cannot seem to find the correct syntax. Context VS2013 with TFPT installed TFS 2013 Update 4 I'm trying to do this through powershell I've created a custom…
nqramjets
  • 76
  • 9
1
vote
1 answer

Is it possible to rollback a shelveset in tfs?

I have done some work on my code and shelved it, then I had to apply a patch to the code from a shelveset to get things working properly. I then had to fix something else in the code and now wish to make a shelveset, but without the patch, so I…
Adrian
  • 10,246
  • 4
  • 44
  • 110
1
vote
1 answer

Is it possible to create a new TFS workspace in PowerShell with Power Tools?

I am building a function in PowerShell that creates a new Workspace and gets the latest version of the directory specified in addition to some other TFS and file system related tasks. Right now I'm using a mixture of PowerTools and TFS assemblies…
Steve Mangiameli
  • 688
  • 7
  • 15
1
vote
1 answer

Copy output powershell TFS data into an excel sheet

I am querying TFS with TFPT.exe and powershell as shown below: $TFSSERVER = "http://tfsserveraddress" Function Get-WorkItem { $query = "SELECT [System.Id], [System.Title], [System.State], [Completed Work] FROM WorkItems " + "WHERE…
1
vote
1 answer

New-TfsChangeset with multiple items

I am just learning to use the powerscript cmdlets for PowerTools for TFS (2012), and have come across the command New-TfsChangeset, which I understand can be used as follows: New-TfsChangeset -Item "C:\fake\path" -Comment "checking in a folder"…
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
1
vote
2 answers

How to handle missing 'added' files during check-in

I have a bunch of files in the 'added' state across many folders that were accidentally deleted from the file system. How can I easily either undo them or convert all of them to a 'delete' status? I'd prefer not to have to manually undo each file…
Keith
  • 20,636
  • 11
  • 84
  • 125
1
vote
1 answer

Creating a Visual Studio Online team project with Team Foundation Power Tools

Is it possible to create a new team project with Team Foundation Power Tools? I have tried using tfpt.exe as follows: createteamproject /collection:"https://myvsonline.visualstudio.com/DefaultCollection" /teamproject:NewProjectName…
joshcomley
  • 28,099
  • 24
  • 107
  • 147
1
vote
0 answers

Using TFS power tools 2013 to query checked out files in Visual Studio 2013 return nothing

I was trying to find all checked out files from TFS using TFS power tools 2013 add-in in Visual Studio 2013. But the search results are always empty. The TFS server is 2012 though. See the following screenshot I took for testing. I checked out few…
Yadong
  • 411
  • 2
  • 5
  • 15
1
vote
2 answers

Team members power tools 2012 with TFS 2010

I have visual studio 2012 installed with TFS 2010. I installed power tools 2012 recently but I do not see the Team Members tab. Is there compatibility issue between TFS 2010 and VS 2012? If yes, any work around to see the Team Members tab in VS…
Shanky
  • 331
  • 1
  • 4
  • 17
1
vote
0 answers

TFS Online 2012 / How to Deploy Custom Check-In Policies

I am going to create a custom check-in policy and I'm using TFS Online and VS2012. I could find a video describing this procedure but it's rather old documentation. I've tried to find clear documentation on how to accomplish this in my specific…