【发布时间】:2011-03-30 21:31:57
【问题描述】:
我已经在我的 Windows 2008 R2 开发人员机器上安装了 TFS Power Tools 2008 及其 PowerShell 集成功能。
当我尝试运行以下命令来启用管理单元时:
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
在 PowerShell.exe 的 32 位版本中,在 C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe 下可以正常工作。但是当我在这里尝试在 64 位版本中执行相同操作时:C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe 我得到以下信息错误:
Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.TeamFoundation.PowerShell' is not installed on this machine.
At line:1 char:13
+ Add-PSSnapin <<<< Microsoft.TeamFoundation.PowerShell
+ CategoryInfo : InvalidArgument: (Microsoft.TeamFoundation.PowerShell:String) [Add-PSSnapin], PSArgument
Exception
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
知道如何让它在 64 位版本中工作吗?提前致谢。
【问题讨论】:
标签: tfs powershell tfs-power-tools