metalx1000

Download a file with Power Shell

Jun 13th, 2014
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Write-Output "Downloading File..."
  2.  
  3. $storageDir = $pwd
  4. $webclient = New-Object System.Net.WebClient
  5. $url = "https://dl.dropbox.com/s/69s8hogh2sxcqrl/miniweb-win32-20130309.zip"
  6. $file = "c:\test\miniweb.zip"
  7. $webclient.DownloadFile($url,$file)
  8.  
  9. Write-Output "File Downloaded"
Add Comment
Please, Sign In to add comment