2 years ago

#76589

test-img

Charper

powershell tfs VersionControlServer service is null

I am trying to use via poweshell the TFS VersionControlServer

$tpc=[Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory]::GetTeamProjectCollection($tfsCollectionUrl)
$service = $tpc.GetService([type]"Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer")

unable to figure out why the variable $service is null

powershell

tfs

0 Answers

Your Answer

Accepted video resources