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
执行命令前,看到确认提示。
有关详细信息,请键入以下命令: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
启动要重命名的网站的父操作 ID。 例如,租户重命名作业 ID。
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 |