Quick Google Drive Install
So, you setup a new VM (locally or on Azure). How do you get your stuff on it?
Me? I use Google Drive. I sync up a custom folder named _Transport_SystemSetup
. This folder has my Notepad2, WinRar, Chrome, and a ton of other thing I just dump into my Windows folder (so I can Win-R run them) (e.g. putty, makecert, nuget, all sysinternals).
Now... how do I get Google Drive on there? Chicken and Egg?
No. Run the following in PowerShell. It will download and install Google Drive for you.
$local = "$env:userprofile\downloads" $url = 'https://dl.google.com/tag/s/appguid%3D%7B3C122445-AECE-4309-90B7-85A6AEF42AC0%7D%26iid%3D%7BD7394D9A-AF62-3D75-9686-627C62B1E926%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Drive%26needsadmin%3Dtrue/drive/googledrivesync.exe' $file = "$local\googledrivesync.exe" wget $url -outfile $file &$file
That's it.
Just for fun... sometimes I'll spin up an Azure VM just for a quick web test. So, here's the PowerShell to get Chrome quickly:
$local = "$env:userprofile\downloads" $url = 'https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B01986938-8680-E7F2-FAFC-001798EF10B8%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26installdataindex%3Ddefaultbrowser/update2/installers/ChromeSetup.exe' $file = "$local\ChromeSetup.exe" wget $url -outfile $file &$file