J'ai installé TFS Power Tools 2008 avec ses fonctions d'intégration PowerShell sur mon ordinateur de développement Windows 2008 R2.TFS Power Tools 2008 Powershell Snapin ne s'exécute pas sur 64 bits sous Windows 2008 R2
Lorsque je tente d'exécuter la commande suivante pour activer la snapin:
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
dans la version 32 bits de PowerShell.exe, sous C: \ Windows \ SysWOW64 \ WindowsPowerShell \ v1.0 \ powershell.exe cela fonctionne très bien. Mais lorsque je tente de faire la même chose dans la version 64 bits ici: C: \ Windows \ system32 \ WindowsPowerShell \ v1.0 \ powershell.exe Je reçois l'erreur suivante:
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
Tous idée comment le faire fonctionner dans la version 64 bits? Merci d'avance.
J'ai dû échapper aux barres obliques comme indiqué dans la réponse de Sergey (par exemple "C: \\", pas "C: \"). Sinon, ces valeurs n'ont pas été importées dans le registre. – Jared