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

Box.com移行でオーナーとして操作する

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

このコマンドを使用すると、Box.comのオーナーとして操作できます。オーナー自身は通常、移行を実行できないため、これは非常に便利です。

オーナー以外のロール(管理者を含む)でBox.comの移行を実行しようとすると、移行は失敗し、次のメッセージが表示されます。

You are not authorized to perform the requested operation.

管理者は、次のように -UserEmail パラメーターを追加する必要があります。

管理者モードで別のユーザーのすべてのドキュメントをインポートする

$box = Connect-Box -Email [email protected] -Admin
$dstSite = Connect-Site -Url "https://mycompanysite-my-sharepoint.com" -Browser
$dstList = Get-List -Name "Documents" -Site $dstSite
$copysettings = New-CopySettings -OnContentItemExists IncrementalUpdate

Import-BoxDocument -Box $box -UserEmail Ownerofthefile@company -DestinationList $dstList -DestinationFolder "FromBox"

パスワードを使用した接続

Import-Module Sharegate

$box = Connect-Box -Email [email protected] -Admin
$mypassword = ConvertTo-SecureString 'mypassword' -AsPlainText -Force

$dstSite = Connect-Site -Url "https://mycompanysite-my-sharepoint.com" -Username "[email protected]" -Password $mypassword
$dstList = Get-List -Name "Documents" -Site $dstSite

Import-BoxDocument -Box $box -UserEmail [email protected] -DestinationList $dstList -DestinationFolder "FromBox"

注: -DestinationFolder は、移行先に新しいフォルダーを作成するために使用することはできません。

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

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