Remove old shelvesets

Today a customer asked me how to clean up old shelvesets.The October 2008 release of TFS Power Tool contains Get-TfsShelveset and Remove-TfsShelveset cmdlets. The issue is that if one passes the result of Get-TfsShelveset to Remove-TfsShelveset with pipeline, the owner information is ignored and the Remove-TfsShelveset cmdlet will attempt to look up shelveset created by the current user.

Fortunately, Remove-TfsShelveset recognizes owner in terms of “Remove-TfsShelveset –Shelveset name;domain\alias”. So one workaround is to first obtain a list of shelvesets with Get-TfsShelveset cmdlet, then computer the shelvesetspecs and invoke Remove-TfsShelveset understands. The below script will delete all shelvesets created before 90 days ago.

Get-TfsShelveset -server http://170112m3:8080 -owner * | 
Where-Object -Filter {$_.CreationDate -lt [DateTime]::Now.AddDays(-90)} |
ForEach-Object -Process { Remove-TfsShelveset -server http://170112m3:8080 -Shelveset
($_.Name+";"+$_.OwnerName) }


e cigarettes November 23, 2010 at 11:50 PM

Great codes and it do offer me a lot of help.keep on writing.Regards.

drupal theme March 14, 2011 at 3:07 AM

great post man, you have to done good job for me. this post will very much help to update my knowledge. I'm searching this code last 2 weeks now only i get the exact code..

dell latitude d610 battery April 18, 2011 at 11:35 PM

Hey You have done great job, really it's an very interesting blog found here.... I enjoyed your post. keep posting. Thanks very much for sharing it.

Stacey August 11, 2011 at 7:58 AM
This comment has been removed by the author.
play poker October 25, 2011 at 2:39 AM

i was searching the solution for removing shelve-sets for some days.Then your post really helped me.Thanks for sharing.

Infobanc December 23, 2011 at 3:10 AM

This is so impressive and nice title of blog. I am always searching such type of Blog that gave some useful knowledge and relax our mind. So Very thanks for design this type of content and what are you thing at time of write. Thanks for sharing views.
Indian exporters canada exporters b2b trade leads suppliers directory indian trade portal Indian buyers Indian tenders trade fairs indian distributer

blackberry developers February 27, 2012 at 10:55 PM

Thank you for that piece of code. That was really useful for me. Can I implement it into my code?

Himanshu Kumar June 13, 2012 at 5:20 AM

The codes you shared are really helpful.Thank you so much for sharing.

Kashmir Tour Packages | Software Company India | Budget Hotels in Ranchi

Blazer for travel January 30, 2013 at 8:10 PM

Thanks for the brilliant tutorial. I never thought I’d be able to set up Ubuntu, but it happened. I’m quite proud of myself, and grateful to you lol.Thanks you really helped me out! I even got it working!

fdhty April 23, 2013 at 6:44 PM

If I could rearrange the alphabet, I'd put Y and I together Runescape Gold, A lifetime of happiness! No man alive could bear it, Rune Scape Gold it would be hell on earth Buy Runescape Gold.

Good love makes you see the whole world from one person while bad love makes you abandon the whole world for one person Ultimate Game Card, Men love from overlooking while women love from looking up. If love is a mountain, then if men go up, more women they will see while womenwill see fewer men Cheap Minecraft Gift Code, if you leave me, please don't comfort me because each sewing has to meet stinging pain Ultimate Game Card.

fdhty April 23, 2013 at 6:44 PM

You laugh at me for being different, but I laugh at you for being the same RuneScape Gold, The consequences of today are determined by the actions of the past RS Gold, experience is a hard teacher because she gives the RS GP test first, the lesson afterwards.

If you can hold something up and put it down, it is called weight-lifting; if you can hold something up but can never put it down Cheap Minecraft Gift Code, Love makes man grow up or sink down Buy Xbox Live Points, I love you not for who you are, but for who I am before you, and successful in each endeavor Ultimate Game Card.

amelie adam August 17, 2013 at 6:51 PM

Shelving enables you to set aside the pending changes in your workspace to work on a higher-priority task or to share your code with another user for code...
Kiosk Manufacturers

Jessica Marquis September 9, 2013 at 11:38 PM

The most effective destroyer of Cellulite is Joey Atlas review ( often sport that you love - running, brisk walking , dancing, squash , ice skating , swimming, tennis, or even yoga ! It is best to exercise in the morning (Joey Atlas).

baixar mobogenie July 12, 2015 at 6:52 PM

This article is really fantastic and thanks for sharing the valuable post.
i like play game jogos click online free and apply baixar facebook gratis online free and apply mobogenie baixar online free

five nights at freddy's download August 7, 2015 at 1:37 AM

I like how you think and the way you represent your views in this article.
facebook movil gratis | five nights at freddy's demo | facebook móvil

iniciar sesion facebook entrar August 7, 2015 at 6:49 PM

Very interesting! Thanks you
facebook entrar iniciar sesion gratis - Sitio Oficial iniciado sesión en Facebook lengua española. facebook entrar rápido, facebook iniciar sesion en tu cuenta de entrar facebook

Red Ball 4 December 14, 2016 at 1:57 AM

Great article, I was very impressed about it, wish you would have stayed next share
strikeforce kitty 2 | red ball 4 | strike force kitty | red ball 3 | ninjago games

Anil Gupta March 3, 2017 at 11:58 PM

The blog is absolutely truly incredible. Lots of large information and inspiration, both of which we all need.
Web Designing Company in Bangalore, Web Development Company Bangalore

Prasanth March 27, 2017 at 10:39 PM

Thanks for such avant-garde and amazing information..Good actuality is absolutely affable information.
UI Designing Companies in Bangalore, Web Application Development Services in Bangalore

Prasanth March 27, 2017 at 10:40 PM
This comment has been removed by the author.
Hotel in Ranchi October 13, 2017 at 1:33 AM

Awesome! Its Really Helpful..

Accommodation in Ranchi October 13, 2017 at 3:07 AM

That is very interesting to read such entries as this one.

Hotels in Ranchi
Ranchi Hotels
Restaurant in Ranchi
Banquet Halls in Ranchi
Book hotels in Ranchi

Website Design Ranchi October 16, 2017 at 3:46 AM

Thats a very interesting post. I have been inspired. Thanks.
Software Company Ranchi
Ecommerce Website Design Ranchi
SEO Company Ranchi
Mobile Apps Development Ranchi

Suruchi Pandey October 10, 2019 at 4:58 AM

Thank you for sharing great information. I can certainly say that this might be beneficial for many of the seekers . Keep sharing and continue updating us. Professional Web design services are provided by W3BMINDS- Website designer in Lucknow.
Web development Company | Web design company

Situs Poker Idn Play October 30, 2019 at 10:37 PM

Artikel yang sangat bagus menarik dan bermanfaat

Bergabunglah dan rasakan sensasi bermain Situs Poker, Domino99, Pokerqq, QQ Online, Domino Qiu, Qiu Qiu Online, Poker Qiu Qiu yang memberikan kemenangan besar hanya di Agen Poker IDN terpercaya yang memberikan kemananga besar jackpot besar bersama Situs Poker Idn Play.

Dengan didukung server yang berkulitas dan permainan yang sangat fair 100% Player vs Player dan tidak ada campur tangan ROBOT di dalam Situs Poker Online Terpercaya


Promo HOT Di Poker Online Terpercaya Maxbetqq :
– Bonus Bulanan Megajackpot
– Bonus New Member 20% (Minimal Deposit Rp25.000 | Maksimal Bonus Rp.50.000)
– Bonus Rollingan 0,5%
– Bonus Deposit Rp. 5000 Setiap Hari
– Bonus Refferal 10% Up To 60%

7 Games Dalam 1 User ID :

✔️ Texas Poker
✔️ Domino QQ
✔️ Capsa Susun
✔️ Bandar Ceme
✔️ Ceme Keliling
✔️ Super Ten
✔️ Pot OMAHA

Info Maxbetqq Anda Bisa Langsung Menghubungi Lewat :

Livechat :
Whatsapp : +66613295868
WeChat : MaxbetQQ
Line : MaxbetQQ

Idn Poker
Idn Poker Apk
Agen Poker Idn
Idn Poker Play
Poker Idn Play
Situs Judi Poker
Idn Poker Terbaru
Game Poker Online
Situs Judi Poker Terbaik
Situs Poker Idn Play
Agen Poker Idn Terpercaya
Agen Poker Idn Terbaik
Situs Poker Idn Uang Asli
Bandar Poker Idn Indonesia
Situs Judi Poker Terpercaya