powershell tf command not recognized as the name of a cmlet powershell tf command not recognized as the name of a cmlet powershell powershell

powershell tf command not recognized as the name of a cmlet


You need to include tf.exe full path. For example, you want to check in files with tf checkin command in PowerShell:

$filePath = "C:\Users\username\Source\Workspaces\teamproject\solutionname\projectname\Class1.cs"  Set-Alias tfs "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\tf.exe"  tfs checkin $filePath   /noprompt