注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Get-GoogleSharedDrive
説明
Google Drive内の共有ドライブを取得するコマンドです。
例
名前を指定して共有ドライブを取得する
$connection = Connect-GoogleDrive -Email [email protected] -Admin
$sharedDrive = Get-GoogleSharedDrive -Connection $connection -Name "SharedDrive"
名前と作成日を指定して共有ドライブを取得する
$connection = Connect-GoogleDrive -Email [email protected] -Admin
$sharedDrive = Get-GoogleSharedDrive -Connection $connection -Name "SharedDrive" -CreatedDate "01/01/2024"
すべての共有ドライブを取得する
$connection = Connect-GoogleDrive -Email [email protected] -Admin
$sharedDrives = Get-GoogleSharedDrive -Connection $connection
構文
Get-GoogleSharedDrive
-Connection <GoogleDriveConnection>
[-Name <String>]
[-CreatedDate <DateTime>]
パラメーター
-Connection <GoogleDriveConnection>
Google Drive接続を指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | True (ByValue; ByPropertyName) |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-CreatedDate <DateTime>
共有ドライブの作成日を指定します。
必須かどうか | False |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-Name <String>
指定したテキストを含む名前で、ドライブを絞り込みます。
必須かどうか | False |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
