Forum Discussion
rajeshlinux2010
Aug 20, 2024Copper Contributor
Start-BitTransfer by passing Jfrog token in PowerShell 5 in windows server 2022
Hi All,
I am trying to download 100MB file from Jfrog arifactory using Start-BitTransfer by passing Jfrog token in PowerShell 5 in windows server 2022
Any please provide the right syntax for that?
Start-BitsTransfer -Source $url -Destination $destination -Headers @{Authorization = "Bearer $token" }
1 Reply
To download a file from JFrog Artifactory using Start-BitsTransfer with a JFrog token in PowerShell 5 on Windows Server 2022, you can use the following syntax:
$headers = @{ "Authorization" = "Bearer $token" } Start-BitsTransfer -Source $url -Destination $destination -Headers $headers