I am trying to connect and get change sets from my TFS. For that I used this command:
powershell -Command "get-pssnapin -Registered
I got result like
Name : Microsoft.TeamFoundation.PowerShell PSVersion : 2.0 Description : This is a PowerShell snap-in that includes the Team Foundation Server cmdlets. Name : WDeploySnapin3.0 PSVersion : 2.0 Description : This is a PowerShell snap-in that contains cmdlets for managing Microsoft Web Deployment infrastructure.
But when I used this command:
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
I am getting this result:
Add-PSSnapin : Cannot load Windows PowerShell snap-in Microsoft.TeamFoundation. PowerShell because of the following error: Could not load file or assembly 'Microsoft.TeamFoundation.PowerTools.PowerShell.dll' or one of its dependencies. The system cannot find the file specified. At line:1 char:1 + Add-PSSnapin Microsoft.TeamFoundation.PowerShell + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.TeamFoundation.PowerShell:String) [Add-PSSnapin], PSSnapInException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand