Skip to main content
Box Employee
May 22, 2025 6:34 AM UTC
Question

Download Items to Windows Server without using Box Sync

Hello Experts :

 

I am looking for a  solution that can copy  anything  in the Box folder  to my Windows Server.  Can anyone advice me what path should i take ?

 

I initially started to work with Curl script . but i am not going any further with that : 

 

PS C:\> curl https://api.box.com/2.0/files/6***phone number removed for privacy***/content-H "Authorization: Bearer bYSqw2ZnclRnEmWipa4gsDSGiO
"
Invoke-WebRequest : A positional parameter cannot be found that accepts argument 'Authorization: Bearer
bYSqw2ZnclRnEmWipa4gsDSGiONPd66u'.
At line:1 char:1
+ curl https://api.box.com/2.0/files/6***phone number removed for privacy***/content-H "Authorizati ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

 

If someone can point me to right direction,  highly appreciate . thank you. 

    2 replies

    Box Employee
    May 22, 2025 6:34 AM UTC

    Hi ,

     

    I think the Box Command Line Interface (CLI) would be a good fit for you! See docs here:

    https://developer.box.com/v2.0/docs/box-cli

     

    Translate
    Box Employee
    May 22, 2025 6:34 AM UTC

    Hello , thank you for the reply . i get  pad block error . any tips ?BOX_go462t26put2s5vroknvwavzqsfvug6r.png

     

     

    thank  you very much

    Translate