Skip to content

Instantly share code, notes, and snippets.

@edwinf
Created August 4, 2012 02:25
Show Gist options
  • Save edwinf/3253574 to your computer and use it in GitHub Desktop.
Save edwinf/3253574 to your computer and use it in GitHub Desktop.
TFS - Find Old Shelvesets
$tfsServerString = "Path To Collection"
$tfs = Get-TfsServer $tfsServerString
Get-TfsShelveset -Server $tfs -owner * | where {$_.CreationDate -le [DateTime]::Now.AddDays(-90)} | Sort {$_.CreationDate} | Format-Table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment