Tuesday, February 21, 2012 8:58 AMTechnical information (for administrator):
The request failed with HTTP status 404: Not Found.
At C:\Users\Samuel\Desktop\Perl Script\Untitled14.ps1:18 char:21
+ $tfs = get-tfsserver <<<< -name $hostName -credential $credential
+ CategoryInfo : InvalidArgument: (:) [Get-TfsServer], TeamFoundationS...ilableException
+ FullyQualifiedErrorId : GetTfsServer,Microsoft.TeamFoundation.PowerTools.PowerShell.GetTfsServerCommand
The Seven Deadly Sins
- Edited by Samuel_zhang Tuesday, February 21, 2012 8:59 AM
Thursday, February 23, 2012 6:30 AMModerator
Thank you for your question.
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Samuel_zhang Friday, February 24, 2012 2:36 AM
Friday, February 24, 2012 2:36 AM
The Seven Deadly Sins
- Marked As Answer by Samuel_zhang Friday, February 24, 2012 2:49 AM
Friday, February 24, 2012 2:39 AMup up
- Marked As Answer by Samuel_zhang Friday, February 24, 2012 2:41 AM
Tuesday, February 28, 2012 6:21 AM
Try changing your URL to include the collection name:
($hostName= http://server:8080/tfs/collectionname) and remove the -all
This posting is provided "AS IS" with no warranties, and confers no rights
Tuesday, April 24, 2012 6:14 AM
$password= ConvertTo-SecureString 'password' -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential ($username, $password)
$tfsConnection = new-object Microsoft.TeamFoundation.Client.TfsConfigurationServer $tfsURL, $credential
on this line: $tfs = get-tfsserver -name $hostName -credential $credential -all you invoke the tf.exe from visual studio and this is the reason why you are not able to connect on TFS using powershell. You should work with TFS API not with tf.exe
- Edited by it_kris Tuesday, April 24, 2012 6:16 AM
Monday, October 01, 2012 6:50 PM
Am I the only person who sees a problem with putting you password in to a script as clear text?
Surely there is a better solution than that?