Script to download data from a secure web directory

As part of an import or backup routine you may wish to automate the downloading of a file from a protected web directory. You might have generated a PHP file to download a particular data view as a CSV or you might have access to another file to backup.

Whatever your reason, this can be achieved easily by using the following power-shell script.

Start-BitsTransfer -source https://USER:PASSWORD@path%to%peotected%file -destination C:\path%to%your%destination

Running this will start a BitsTransfer job to fetch your file and save it to the location you specify.

Be the first to comment on "Script to download data from a secure web directory"

Leave a comment

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.