Moving Quickly Among Branches With PowerShell Dynamic Parameters

,
February 7, 2017 / No Comment

I am currently working on a large integration project that uses a PowerShell script within each sub-module to manage building, deploying and even launching Visual Studio. Due to a reliance on code namespaces matching with folder structures, these PowerShell scripts are sprinkled all over a large directory structure. Fortunately, they are well-named and exist in a predictable sub folder. Working […]
Read more

AUTHOR: CATEGORY: Blog, PowerShell

Using PowerShell’s Invoke-RestMethod to Access VSTS OData

,
August 23, 2016 / No Comment

Given that Microsoft has abandoned their TFS CmdLets, one alternative is to access VSTS data is through the OData interface using the Invoke-RestMethod.
Before you begin you need to setup Alternate authentication credentials by navigating to https://<yourtenant>.visualstudio.com/_details/security/altcreds.  Once these are established, you will likely want to save them to a local PowerShell variable so that they can be reused for each […]
Read more

AUTHOR: CATEGORY: .Net, Blog, PowerShell, TFS, Uncategorized

Deploying Windows Services With Psake and Web Deploy

,
June 29, 2015 / No Comment

At IntelliTect, a common pattern of our client solutions are windows services that process work on either a scheduled basis or watch a file location. We often use a combination of the Topshelf framework with the TopShelf.Quartz job scheduling package to solve these problems. These packages expose a useful fluent interface to schedule multiple jobs in a service instance and […]
Read more

AUTHOR: CATEGORY: PowerShell

MSCORELIB Classes that work with using static in C# 6.0

,
November 15, 2014 / No Comment

While writing another MSDN magazine article on C# 6.0 (the third because the language continues to improve) I was looking for a good example of when to use the new “using static” feature.  Towards this effort, I used PowerShell to crawl through all the MSCORELIB types and output the ones meeting the following criteria:

The type is public
The […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#, PowerShell

Deleting Moldy Shelvesets

,
October 20, 2012 / 1 Comment

If you have had a Team Foundation Server (TFS) instance running for any significant length of time you undoubtedly have old shelvesets lying around from other developers (surely you wouldn’t have done this) that have long ago expired and although moldy, they have not disintegrated. Consider cleaning them up using the following short PowerShell script from Kelly Adams:


Read more

AUTHOR: CATEGORY: Blog, PowerShell, TFS

Removing Duplicate Entries from %PATH%

,
June 30, 2012 / 2 Comments

As developers, we frequently end up with duplicate entries in our path. From the command line you can clean up your path using pathman.exe. Here’s a PowerShell Script to find the duplicates and remove them using Pathman.exe:

$extraPath=(($path.Split(“`;”) | group | ?{$_.Count -gt 1}).Values | %{$_[0]}
pathman.exe /ru $extrapath

Disclaimer: Works for us.

AUTHOR: CATEGORY: PowerShell, Windows

IntelliTect Presents at the Seattle Code Camp 2012

,
June 15, 2012 / No Comment

Asynchronous Programming with C# 5.0 – Mark Michaelis
In C# 5.0 there is really only one significant syntax addition – support for asynchronous programming that is embedded into the language. In this session we go over the is and is-nots of what C# 5.0 enables in the way of parallel processing – both for the UI and for the server […]
Read more

AUTHOR: CATEGORY: .Net, C#, Headlines, PowerShell

Where'd that Team Foundation Build drop?

,
June 8, 2012 / No Comment

Recently I came across a need to know where a Team Foundation Server 2010 build definition dropped the files after a successful build.  I probably could have written a custom Activity and queried TFS in C# code, but the build definition in question heavily leverages PowerShell and the Psake domain specific language, so I wanted to keep it in PowerShell […]
Read more

AUTHOR: CATEGORY: ALM, Blog, Headlines, PowerShell, TFS

GIST: Windows Server “8” Administrative Experience

,
April 3, 2012 / No Comment

There are several items that deserve highlighting from Erin Chapple’s post (via Jeffry Snover) titled, “Rocking the Windows Server “8” Administrative Experience”.  Here’s my gist:

Administration designed for one a single-role centric view to a multi-server view of the environment.  The result is that rather than administer a role on a particular server you will now be able to […]
Read more

AUTHOR: CATEGORY: Headlines, PowerShell, Windows