Downloading files from the internet in PowerShell (with progress)

Ok, so the easiest way (that I know of) to download files in powershell from the internet is to use the .net WebClient.  The simple way I started with was the two liner: $client = New-Object “System.Net.WebClient”$client.DownloadFile(“http://somesite.com/largefile.zip”,”c:\temp\largefile.zip” However I was working on a script that required some pretty large files to be downloaded, and using…

5

Importing a File Share into Document Library via PowerShell

So today I was asked for a way to automate importing files from a file share into a document library.  For this, ACL’s were not an issue, however using PS’s Get-ACL function can get you that as well to match the insert. Here is what I came up with as a quick and dirty response. …

1