メインコンテンツにスキップ

Get Google My Drive

注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。

コマンド

Get-GoogleMyDrive

説明

Google Driveからマイドライブを取得するコマンドです。

ユーザーとして現在のマイドライブを取得する

$connection = Connect-GoogleDrive -Email [email protected]
$myDrive = Get-GoogleMyDrive -Connection $connection

管理者としてユーザーのマイドライブを取得する

$connection = Connect-GoogleDrive -Email [email protected] -Admin
$myDrive = Get-GoogleMyDrive -Connection $connection -Email "[email protected]"

管理者としてすべてのユーザーのマイドライブを取得する

$connection = Connect-GoogleDrive -Email [email protected] -Admin
$myDrives = Get-GoogleMyDrive -Connection $connection

構文

Get-GoogleMyDrive
-Connection <GoogleDriveConnection>
[-Email <String>]

パラメーター

-Connection <GoogleDriveConnection>

Google Drive接続を指定します。

必須かどうか

True

既定値

None

パイプライン入力を許可するか

True (ByValue; ByPropertyName)

ワイルドカード文字を許可するか

False

パラメーターセット名

(All)

エイリアス

None

-Email <String>

指定したテキストを含むメールアドレスで、ドライブを絞り込みます。指定しない場合は、すべてのマイドライブが返されます。管理者接続でのみ使用できます。

必須かどうか

False

既定値

None

パイプライン入力を許可するか

False

ワイルドカード文字を許可するか

False

パラメーターセット名

(All)

エイリアス

None

この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。

こちらの回答で解決しましたか?