0

I am using below command in power shell to undo any pending changes in my workspace at a specified path recursively

Set-Alias tf "$env:VS140COMNTOOLS..\IDE\tf.exe"

tf vc undo /workspace:PL2INPUN1633NB /recursive $/DCS/PCS7/PAA /collection:https://saturn.tfs.siemens.net/tfs/PA

but it is giving me error as:

PS C:\WINDOWS\system32> tf vc undo /workspace:PL2INPUN1633NB /recursive $/DCS/PCS7/PAA /collection:https://saturn.tfs.siemens.net/tfs/PA
tf : TF400324: Team Foundation services are not available from server https://saturn.tfs.siemens.net/tfs/PA.
At line:1 char:1
+ tf vc undo /workspace:PL2INPUN1633NB /recursive $/DCS/PCS7/PAA /login ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (TF400324: Team ...ens.net/tfs/PA.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Technical information (for administrator):
  The request was aborted: Could not create SSL/TLS secure channel.

If the same command is run in visual studio command prompt then it is working absolutely fine.

I don't understand why team foundation service is not available when running TFS command in power shell.

riQQ
  • 6,571
  • 4
  • 32
  • 48

0 Answers0