Get-SPOSiteRenameState

返回 SharePoint Online 网站的当前重命名作业状态。

语法

Get-SPOSiteRenameState
   -Identity <SpoSitePipeBind>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Get-SPOSiteRenameState
   -ParentOperationId <guid>
   [-State <RenameState>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Get-SPOSiteRenameState
   [-State <RenameState>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

说明

使用此 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

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-Identity

要重命名的站点的 URL。

Type:SpoSitePipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-ParentOperationId

启动要重命名的站点的父操作 ID。 例如,租户重命名作业 ID。

Type:guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-State

重命名作业的状态,可能的值为

  • 已排队

  • InProgress

  • 成功

  • 已失败

  • 已暂停

Type:RenameState
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online