In powershell when I run
Get-TfsItemHistory . -Recurse -Version C13855~C14103
I get error Unable to determine the source control server.
If I were running tfpt.exe I could simply do tf workspaces /s:serverUrl
.
How can I get past this error?
Running these 4 commands in PS fixed the issue
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
$tfsServerString = "http://server:8080/tfs/optionalName"
$tfs = get-tfsserver $tfsServerString
Get-TfsItemHistory $/TeamProjectName -Recurse -Version C13855~C14103 -Server $tfs | fl Comment,ChangesetId,CreationDate,Committer
This issue is specific to x64 windows.