Skip to content

Instantly share code, notes, and snippets.

View Imroath's full-sized avatar

Krzysztof Wrobel Imroath

  • EcoVadis
  • Warsaw
View GitHub Profile
@Imroath
Imroath / Change Retention Policies
Created August 21, 2018 08:16 — forked from eriksteinebach/Change Retention Policies
Change retention policies for all TFS projects with some specific settings
#Script to change build retention policy naar All om te voorkomen dat builds niet netjes worden opgeruimt
Add-Type -AssemblyName "Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"Microsoft.TeamFoundation.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"Microsoft.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"Microsoft.TeamFoundation.Build.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
#Config settings:
$CollectionUrlParam = "<collectionurl>"