Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, September 20, 2016 7:25 AM
Hello
How to download files and folders from Google Drive using PowerShell ?
Avian
All replies (2)
Tuesday, September 20, 2016 8:18 AM
Hi Avian,
Please check the sample for the same
$source = "https://docs.google.com/a/domainname.co.in/spreadsheets/d/1in0m8PhfiYhu4qCWO1dxNc3OS3p8prF7HWRZ-bjnKBI/export?format=xlsx"
$dest = "Z:\Corp\Comp Serv\Comp Op\OB\Dep Data\Call\Google backup\download.xlsx"
$WebClient = New-Object System.Net.WebClient
$WebProxy = New-Object System.Net.WebProxy("http://myproxy.com:1111",$true)
$Credentials = New-Object Net.NetworkCredential("user,"","domain.local")
$Credentials = $Credentials.GetCredential("http://myproxy.com","1111", "KERBEROS");
$WebProxy.Credentials = $Credentials
$WebClient.Proxy = $WebProxy
$WebClient.DownloadFile($source,$dest)
You also could check Google Drive API at https://developers.google.com/drive/v3/web/manage-downloads
Thanks
Kailas
Please Vote or Mark as answer
Tuesday, September 20, 2016 11:32 AM
Hi Kailas
Thanks, but I already saw this article and post in the forum. It is more on download particular spreadsheet.
I am looking for some better article or example with step by step instruction.
Avian