OneDrive and Dropbox both create non-removable shortcuts in the Windows Explorer sidebar - the same unfortunately cannot be said for Google Drive. The scripts in this repository will make the necessary changes to allow for a Google Drive shortcut in Windows Explorer. The original article can be found at Adding Google Drive to the Windows Explorer sidebar
Disclaimer: This was tested on Windows 2019 Server, Windows 10 Professional and Windows 8.1 Professional. Ensure you backup your registry before making any changes.
- Download and run the
Google Drive.bat
batch file as an Administrator. Instructions for how to run a batch file as Administrator can be found here, here or here. - Restart your computer.
You should now see Google Drive pinned to the Windows Explorer sidebar.
- Download and run the
Remove Google Drive.bat
batch file as an Administrator. - Restart your computer.
If Google Drive is configured in mirror or classic mode and not installed in the default location i.e C:\Users\Username\My Drive
you must update lines #26 and #27 to reflect the correct location before running the script. For example, if Google Drive is configured for C:\Google Drive
you must update the value from %USERPROFILE%\My Drive
to C:\Google Drive
.