This file contains hidden or 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( | |
$MaxJobs = $env:NUMBER_OF_PROCESSORS | |
) | |
$elapsed = [System.Diagnostics.Stopwatch]::StartNew() | |
$jobs = @() | |
1..25 | % { | |
$running = Get-Job -State Running |
This file contains hidden or 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: https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx | |
function Get-InstalledNetFrameworkVersions() { | |
[CmdletBinding()] | |
Param() | |
Write-Verbose "Installed .NET Framework Versions" | |
$path = 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' | |
ls $path | % { |
This file contains hidden or 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
Get-NetConnectionProfile | |
Set-NetConnectionProfile -InterfaceIndex <ndx> -NetworkCategory Private |
This file contains hidden or 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
# Git Repo | |
git clean -d -x -e Development/local.config -f | |
#TFS Repo | |
tfpt treeclean /noprompt /recursive /exclude:local.config |
This file contains hidden or 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 Get-AzureADOpenIdConnectMetadata() { | |
param( | |
[string] | |
$tenant = "common" | |
) | |
$metadata_url = "https://login.windows.net/{0}/.well-known/openid-configuration" -f $tenant | |
Invoke-RestMethod $metadata_url | |
} |
This file contains hidden or 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
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.Client") | Out-Null | |
<# | |
.Synopsis | |
Gets a list of all changesets from $Source that have not been merged into $Destination. | |
.DESCRIPTION | |
Gets a list of all changesets from $Source that have not been merged into $Destination. | |
.EXAMPLE | |
$tfs = Get-TfsServer http://<hostname>:8080/tfs | |
Get-MergeCandidates -Server $tfs -Source "$/Some/Source/Branch" -Destination "$/Some/Destinsation/Branch" |
This file contains hidden or 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
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory = $true)] | |
$Path | |
) | |
$packages = @() | |
ls -Path $Path -Include packages.config -Recurse -File | % { | |
$xml = [xml](Get-Content $_) |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Server Information</title> | |
</head> | |
<body> | |
@ServerInfo.GetHtml() | |
</body> | |
</html> |
This file contains hidden or 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
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)] | |
$RootDir, | |
[string[]]$Assemblies = @( | |
'System.Net.Http.Formatting', | |
'System.Web.Http', | |
'System.Web.Http.WebHost', | |
'System.Web.Mvc' | |
) |
This file contains hidden or 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 WebAdministration | |
Set-ItemProperty IIS:\AppPools\<pool_name> managedRuntimeVersion v4.0 |