Fixing TFS 2012 Power Tools PowerShell CmdLets in PowerShell x64

The TFS 2012 Power Tool installation only installs the TFS PowerShell Snap-In for the 32-bit flavor of PowerShell on an x64 machine. With nearly all developers running x64 machines, we miss the ability to script TFS access in the ultimate scripting language. Needing to script so TFS automation I went looking to see if we could get the TFS PowerShell Snap-In working with x64 PowerShell.

You have to love the internet because I found the answer for TFS Power Tools 2008 in three seconds. A quick trip to my registry and through my favorite text editor had me controlling TFS in my TFS pipeline and all was right with the world. Because I’ll forget how to do this on my next machine repave, I’ll post the registry file that will hook up the TFS PowerShell Snap-In into x64 PowerShell.

  1. Windows Registry Editor Version 5.00
  2. [HKEY_LOCAL_MACHINESOFTWAREMicrosoftPowerShell1PowerShellSnapInsMicrosoft.TeamFoundation.PowerShell]
  3. “PowerShellVersion”=”2.0”
  4. “Vendor”=”Microsoft Corporation”
  5. “Description”=”This is a PowerShell snap-in that includes the Team Foundation Server cmdlets.”
  6. “VendorIndirect”=”Microsoft.TeamFoundation.PowerShell,Microsoft”
  7. “DescriptionIndirect”=”Microsoft.TeamFoundation.PowerShell,This is a PowerShell snap-in that includes the Team Foundation Server cmdlets.”
  8. “Version”=”11.0.0.0”
  9. “ApplicationBase”=”C:Program Files (x86)Microsoft Team Foundation Server 2012 Power Tools”
  10. “AssemblyName”=”Microsoft.TeamFoundation.PowerTools.PowerShell, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
  11. “ModuleName”=”C:Program Files (x86)Microsoft Team Foundation Server 2012 Power ToolsMicrosoft.TeamFoundation.PowerTools.PowerShell.dll”
  12. “CustomPSSnapInType”=”Microsoft.TeamFoundation.PowerTools.PowerShell.TFPSSnapIn”

Obvious, if you changed the TFS 2012 Power Tools installation directory from the defaults, you’ll have to update the .REG file.

John Robbins

Recent Posts

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

5 days ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

3 weeks ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

1 month ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

1 month ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

1 month ago

Mastering Compliance: The Definitive Guide to Managed Compliance Services

In the intricate landscape of modern business, compliance is both a cornerstone of operational integrity…

2 months ago