Score:-1

Download Sharepoint Online files via Powershell

in flag

I've been handed a project, where our marketing dept produces images and each workstation & laptop need to download those images on startup or login. (wallpaper folder, screen saver images, etc etc)

I'd like to use Sharepoint Online to store a publicly accessible (no login required) folder with the images, and then use Powershell to grab the contents.

Every example that I find requires a snapin or module for this.

Does anyone know of a straight-forward way of vanilla Powershell copying the contents of a publicly available SO folder to local disk?

Thanks!

Score:0
in flag

One possible way is to download is to use command like:

Invoke-WebRequest -Uri http://url.of/file -OutFile output_file.jpg

This will require one line per file. If you can archive all the files in zip file you can download them via above way and extract via command:

Expand-Archive -Path archive.Zip 

to extract the files in current directory

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.