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
#requires -Version 2 | |
[CmdletBinding()] | |
param ( | |
[parameter( | |
Mandatory=$true, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true | |
)] | |
[string[]] |
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
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[ValidatePattern('^https?://')] | |
[string] | |
$TeamProjectCollectionUri, | |
[parameter(Mandatory=$true)] | |
[string] |
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
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[ValidateScript({ $_ | Test-Path -PathType Leaf })] | |
[string] | |
$Path | |
) | |
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
#requires -version 2.0 | |
param ( | |
[parameter(Mandatory=$true)] | |
$VM, | |
[parameter(Mandatory=$true)] | |
[string] | |
$TemplateName, | |
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
if ($global:ProfileEventSubscribers) { | |
$global:ProfileEventSubscribers | | |
ForEach-Object { | |
Unregister-Event -SourceIdentifier $_.Name | |
} | |
} | |
$global:ProfileEventSubscribers = @() | |
$global:IsTfsInstalled = $false | |
try { |
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
if ($psise) { | |
if (!(test-path $profile)) { new-item $profile -fo -it file } | |
$e = $psise.CurrentPowerShellTab.Files.Add($profile).Editor | |
$col = $e.GetLineLength($e.LineCount)+1 | |
$e.Select($e.LineCount,$col,$e.LineCount,$col) | |
$e.InsertText("`n" + (new-object Net.WebClient).DownloadString( | |
'http://gist.github.com/raw/518638/3e0beb7a5a6ddc19446d5a6d38c8267794c92eba/Microsoft.PowerShellISE_profile.ps1' | |
)) | |
} else { throw 'Run this script using the ISE' } |
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
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[ValidateScript({Test-Path -PathType Leaf -LiteralPath $_})] | |
[string] | |
$DbSchemaFile, | |
[parameter(Mandatory=$true)] | |
[string] |
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
function Grant-FileSystemAccess ( | |
[string]$Path, | |
[string]$UserName, | |
[System.Security.AccessControl.FileSystemRights]$Rights | |
) { | |
$Inherit = [System.Security.AccessControl.InheritanceFlags]'None' | |
$Propagation = [System.Security.AccessControl.PropagationFlags]'None' | |
if ((Get-Item -Path $Path).PSIsContainer) { | |
$Inherit = [System.Security.AccessControl.InheritanceFlags]'ContainerInherit, ObjectInherit' | |
} |
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
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[ValidateScript({ Test-Path -Path $_ -PathType Leaf })] | |
[string] | |
$Path | |
) | |
$ErrorActionPreference = 'Stop' |
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
<Reference Include="Microsoft.TeamFoundation.Build.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> | |
<Reference Include="Microsoft.TeamFoundation.Build.Workflow, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | |
<SpecificVersion>False</SpecificVersion> | |
<HintPath>$(MSBuildProgramFiles32)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Workflow.dll</HintPath> | |
</Reference> | |
<Reference Include="Microsoft.TeamFoundation.TestImpact.BuildIntegration"> | |
<HintPath>$(MSBuildProgramFiles32)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.TestImpact.BuildIntegration.dll</HintPath> | |
</Reference> | |
<Reference Include="Microsoft.TeamFoundation.TestImpact.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> | |
<Reference Include="Microsoft.TeamFoundation.V |
OlderNewer