Skip to main content
Get Google Shared Drive
Updated over 2 weeks ago

Command

Get-GoogleSharedDrive

Description

The command to get shared drives from Google Drive.

Index

Examples

Get shared drive by name

$connection = Connect-GoogleDrive -Email [email protected] -Admin
$sharedDrive = Get-GoogleSharedDrive -Connection $connection -Name "SharedDrive"

Get shared drive by name and created date

$connection = Connect-GoogleDrive -Email [email protected] -Admin
$sharedDrive = Get-GoogleSharedDrive -Connection $connection -Name "SharedDrive" -CreatedDate "01/01/2024"

Get all shared drives

$connection = Connect-GoogleDrive -Email [email protected] -Admin
$sharedDrives = Get-GoogleSharedDrive -Connection $connection

Syntax

Get-GoogleSharedDrive
-Connection <GoogleDriveConnection>
[-Name <String>]
[-CreatedDate <DateTime>]

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

-CreatedDate <DateTime>

Specifies the created date of the shared drive.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-Name <String>

Filters drives by name containing the supplied text.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

Did this answer your question?