Copy-SPSideBySideFiles

複製 SideBySide 檔案。

Syntax

Copy-SPSideBySideFiles
    [-AssignmentCollection <SPAssignmentCollection>]
    [-LogFile <String>]
    [<CommonParameters>]

Description

在 SharePoint Server 2016 中,可使用零停機時間就地升級。 如果在升級期間使用 PSConfig.exe 檔案且複製 SideBySide 檔案失敗,您可以使用 Copy-SPSideBySideFiles Cmdlet 來複製 SideBySide 檔案。 如果您使用 Microsoft PowerShell 腳本,而不是PSConfig.exe來執行升級,請執行 Copy-SPSideBySideFiles Cmdlet 來複製 SideBySide 檔案。

範例

------------Example 1 -----------

Copy-SPSideBySideFiles -LogFile "C:\CopySideBySideFiles.log"

此範例會複製 SideBySide 檔案,並將複製程序的記錄檔資料寫入至 CopySideBySideFiles.log 檔案。

參數

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

附註:使用 Global 參數時,所有物件會包含在全域儲存區內。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-LogFile

Specifies the fully-qualified logfile name of SideBySide copy operation. If LogFile is not specified, the logfile will be placed in default SharePoint log files folder.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

輸入

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸出

系統.物件