Get-SPOSiteRenameState
傳回 SharePoint Online 網站的目前重新命名作業狀態。
Syntax
Get-SPOSiteRenameState
-Identity <SpoSitePipeBind>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Get-SPOSiteRenameState
-ParentOperationId <guid>
[-State <RenameState>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Get-SPOSiteRenameState
[-State <RenameState>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
使用此 Cmdlet 可傳回 SharePoint Online 網站的目前重新命名作業狀態。
範例
範例 1
Get-SPOSiteRenameState -Identity https://contoso.sharepoint.com/sites/ContosoWeb1
此範例會傳回 ContosoWeb1 月臺的重新命名作業狀態。
範例 2
Get-SPOSiteRenameState -State InProgress
此範例會傳回處於 InProgress 狀態的重新命名作業。
範例 3
$tenantRenameJobId = (Get-SPOTenantRenameStatus).RenameJobId
Get-SPOSiteRenameState -ParentOperationId $tenantRenameJobId
此範例會傳回租使用者重新命名所起始的重新命名作業。
參數
-Confirm
在執行命令之前,提示您確認操作。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Identity
要重新命名之網站的 URL。
Type: | SpoSitePipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ParentOperationId
起始要重新命名之月臺的父作業識別碼。 例如,租使用者會重新命名作業識別碼。
Type: | guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-State
重新命名作業的狀態、可能的值為
已排入佇列
InProgress
成功
失敗
暫止
Type: | RenameState |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WhatIf
顯示訊息會描述命令的功效而不執行命令。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |