#$head = @{"PRIVATE-TOKEN"="glpat-dQsUhS-GxNomkh1GnjHZ"} #$projectCount=1 #$callUrl = "https://gitlab.steamware.net/api/v4/projects/" + $projectCount + "/remote_mirrors" #$callUrl = "https://gitlab.steamware.net/" #$Response = Invoke-WebRequest -URI $callUrl -Headers $head -ContentType "application/json" -UseBasicParsing #Write-Output($Response) $url = "https://*****:*****@gitlab-nembro.steamware.net/steamware/NKC.git" $splitUrl = $url -split '.steamware.net/' Write-Output $splitUrl[0] Write-Output $splitUrl[1]