Use the below commands as a Bat file to map Google Drive as G Drive. 


@echo off

net use g: /delete

net use g: "\\localhost\c$%HOMEPATH%\Google Drive" /persistent:yes

or for Box

net use g: "\\localhost\c$%HOMEPATH%\Box Sync" /persistent:yes

or for OneDrive Teams

net use o: "\\localhost\c$%HOMEPATH%\APM" /persistent:yes


Hint: You can load Windows Explorer, right click G: drive and select rename. Now rename the drive to something easier to read.