Restore-SPODeletedContainer

從資源回收筒中恢復已刪除的容器。

語法

Default (預設值)

Restore-SPODeletedContainer
    [-Identity] <SPOContainerPipeBind>
    [<CommonParameters>]

Description

Restore-SPODeletedContainer Cmdlet 會從資源回收筒中復原先前刪除的檔案儲存容器。 Cmdlet 將會擷取 Get-SPOContainer 還原的容器。 您必須至少是 SharePoint 線上管理員才能執行此 Cmdlet。

範例

範例 1

Restore-SPODeletedContainer -Identity b66f5b2e-4cbd-4754-9ad3-8291c2c81ade

範例 1 會使用 ContainerIdb66f5b2e-4cbd-4754-9ad3-8291c2c81ade 資源回收筒還原容器。

參數

-Identity

適用對象:SharePoint Online

使用此參數來指定 ContainerId 要還原的已刪除容器。

參數屬性

類型:Microsoft.Online.SharePoint.PowerShell.SPOContainerPipeBind
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。

輸入

None

輸出

System.Object