Command
Get-GoogleMyDrive
Description
The command to get My Drives from Google Drive.
Index
Examples
Get current My Drive as user
$connection = Connect-GoogleDrive -Email [email protected]
$myDrive = Get-GoogleMyDrive -Connection $connection
Get a user's My Drive as admin
$connection = Connect-GoogleDrive -Email [email protected] -Admin
$myDrive = Get-GoogleMyDrive -Connection $connection -Email "[email protected]"
Get all users' My Drive as admin
$connection = Connect-GoogleDrive -Email [email protected] -Admin
$myDrives = Get-GoogleMyDrive -Connection $connection
Syntax
Get-GoogleMyDrive
-Connection <GoogleDriveConnection>
[-Email <String>]
Parameters
-Connection <GoogleDriveConnection>
Specifies the Google Drive connection.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Email <String>
Filters drives by email containing the supplied text. If not specified, all My Drives will be returned. Can only be used with an admin connection.
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |