TFS Build: `Microsoft.TeamFoundation.PowerShell' is not installed on this computer

前端 未结 3 1793
轻奢々
轻奢々 2020-12-06 19:02

When I\'m logged in to tfs build server using local account and execute following powershell command:

Add-PSSnapin Microsoft.TeamFoundation.PowerShell
         


        
3条回答
  •  悲哀的现实
    2020-12-06 19:35

    I am going to have a quick punt here and say it is probably something to do with 32-bit vs 64-bit powershell. If I run Add-PSSnapinicrosoft.TeamFoundation.PowerShell from normal 64-bit powershell fine. But if I run it from C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe I get the above exception. I am going to go ahead and say that the build server is a 32-bit application and there for starting a 32-bit runtime.

    Not really sure what the fix is exactly but maybe the following will point you in the right direction.

    PowerShell (2.0, 32-bit) can't load TFS 2010 snap-in... except when it can

    https://social.msdn.microsoft.com/Forums/en-US/a116799a-0476-4c42-aa3e-45d8ba23739e/tfs-power-tools-2008-powershell-snapin-wont-run-in-on-64bit-in-windows-2008-r2?forum=tfspowertools

提交回复
热议问题