This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
witadmin importwitd /collection:http://localhost:8080/tfs/DefaultCollection /p:"Minha empresa OTP" /f:c:\YTemp\TeamfieldCustom\UserStory.xml | |
witadmin importwitd /collection:http://localhost:8080/tfs/DefaultCollection /p:"Minha empresa OTP" /f:c:\YTemp\TeamfieldCustom\Bug.xml | |
witadmin importwitd /collection:http://localhost:8080/tfs/DefaultCollection /p:"Minha empresa OTP" /f:c:\YTemp\TeamfieldCustom\Task.xml | |
witadmin importwitd /collection:http://localhost:8080/tfs/DefaultCollection /p:"Minha empresa OTP" /f:c:\YTemp\TeamfieldCustom\TestPlan.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
witadmin importgloballist /collection:"http://localhost:8080/tfs/DefaultCollection" /f:c\YTemp\TeamfieldCustom\globallist.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
witadmin exportgloballist /collection:"http://localhost:8080/tfs/DefaultCollection" /f:c\YTemp\TeamfieldCustom\globallist.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
witadmin exportprocessconfig /collection:"http://localhost:8080/tfs/DefaultCollection" /p:"Minha Empresa OTP" /f:c:\YTemp\TeamfieldCustom\ProcessConfiguration.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TypeFields> | |
(...) | |
<TypeField refname="MinhaEmpresa.Team" type="Team" /> | |
</TypeFields> | |
<RequirementBacklog category="Microsoft.RequirementCategory" parent="Microsoft.FeatureCategory" pluralName="Stories" singularName="User Story"> | |
<AddPanel> | |
<Fields> | |
<Field refname="System.Title" /> | |
<Field refname="MinhaEmpresa.Team" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[parameter(Mandatory=$false)][string] $CollectionUrlParam = $(Read-Host -prompt "Collection URL"), | |
[parameter(Mandatory=$false)][string] $TeamProjectParam = $(Read-Host -prompt "Team Project"), | |
[parameter(Mandatory=$true)][String] $GlobalListName = $(Read-Host -prompt "Project List"), | |
[parameter(Mandatory=$true)][String] $GlobalEntryValue = $(Read-Host -prompt "New project name") | |
) | |
$pathToAss2 = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v2.0" | |
$pathToAss4 = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.5" | |
Add-Type -Path "$pathToAss2\Microsoft.TeamFoundation.Client.dll" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
witadmin exportcategories /collection:%1 /p:%2 /f:categories.xml | |
witadmin exportprocessconfig /collection:%1 /p:%2 /f:process.xml | |
witadmin listwitd /collection:%1 /p:%2 > wits.txt | |
FOR /F "eol=, tokens=*" %%i in (wits.txt) DO witadmin exportwitd /collection:%1 /p:%2 /n:"%%i" /f:"%%i".xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
witadmin importcategories /collection:%1 /p:%2 /f:categories.xml | |
witadmin importprocessconfig /collection:%1 /p:%2 /f:process.xml | |
FOR /F "eol=, tokens=*" %%i in (wits.txt) DO witadmin importwitd /collection:%1 /p:%2 /n:"%%i" /f:"%%i".xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module TfsCmdlets | |
Connect-TfsTeamProjectCollection http://vsalm:8080/tfs/TailspinToysCollection | |
Get-TfsWorkItem -Filter '[System.IterationPath] = "Tailspin Toys\Iteration 2" And [System.WorkItemType] = "User Story"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Based on code from http://superuser.com/questions/470319/how-to-enable-internet-connection-sharing-using-command-line | |
Function Set-NetConnectionSharing | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$InternetConnection, |