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

Get-File

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

コマンド

Get-File

説明

SharePointリストまたはファイル共有からファイルを取得するコマンドです。

ファイル共有のファイルを取得する

Get-File -Path "G:\MyFile.txt"Title    : MyFile.txtFileType : FileShareList     :Address  : file:///G:/MyFile.txtWeb      :

SharePointファイルを取得する

$srcSite = Connect-Site -Url "http://myfarm1/sites/mysitecollection"$srcList = Get-List -site $srcSite -name "MyList"Get-File -List $srcList -Path "MyFolder/MyFile.txt"Title    : MyFile.txtFileType : SharePointList     : Sharegate.Automation.Entities.ListAddress  : http://myfarm1/sites/mysitecollection/MyList/MyFolder/MyFile.txtWeb      : Sharegate.Infrastructure.Models.SharePoint.SGWeb

構文

Get-File
-List <List>
-Path <Uri>
Get-File
-Path <Uri>

パラメーター

-List <List>

SharePointリストを指定します。

必須かどうか

True

既定値

None

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

True (ByValue)

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

False

パラメーターセット名

SharePoint

エイリアス

None

-Path <Uri>

SharePointリストからの相対パスを指定します。

必須かどうか

True

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

None

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

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