Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-SPOSiteRenameState

Returns the current rename job state of a SharePoint Online Site.

Syntax

SourceSiteUrl (Default)

Get-SPOSiteRenameState
 -Identity <SpoSitePipeBind>
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

ParentId

Get-SPOSiteRenameState
 -ParentOperationId <Guid>
 [-State <RenameState>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

RenameReport

Get-SPOSiteRenameState
 [-State <RenameState>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

Use this cmdlet to return the current rename job state of a SharePoint Online Site.

Examples

Example 1

Get-SPOSiteRenameState -Identity https://contoso.sharepoint.com/sites/ContosoWeb1

This example returns the rename job state of ContosoWeb1 Site.

Example 2

Get-SPOSiteRenameState -State InProgress

This example returns rename jobs that are in InProgress state.

Example 3

$tenantRenameJobId = (Get-SPOTenantRenameStatus).RenameJobId
Get-SPOSiteRenameState -ParentOperationId $tenantRenameJobId

This example returns rename jobs that were initiated by a tenant rename.

Parameters

-Confirm

Applicable: SharePoint Online

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-Identity

Applicable: SharePoint Online

The urls of the site to be renamed.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ParentOperationId

Applicable: SharePoint Online

The parent operation id that initiated the site to be renamed. For example, the tenant rename job id.

Parameter properties

Type:System.Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-State

Applicable: SharePoint Online

The state of the rename job, possible values are

  • Queued
  • InProgress
  • Success
  • Failed
  • Suspended

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.RenameState
Default value:None
Accepted values:Queued, InProgress, Success, Failed, Suspended, Canceling, Canceled
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Applicable: SharePoint Online

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object


Feedback

Was this page helpful?