Move-SPSocialComment

移动社交评论。

语法

Move-SPSocialComment
    [-AssignmentCollection <SPAssignmentCollection>]
    [-Confirm]
    [-NewUrl <String>]
    [-OldUrl <String>]
    -ProfileServiceApplicationProxy <SPServiceApplicationProxyPipeBind>
    [-SiteSubscription <SPSiteSubscriptionPipeBind>]
    [-WhatIf]
    [<CommonParameters>]

说明

此 cmdlet 在 SharePoint Server 2010 中引入,其中包含 Service Pack 1 (SP1) 和 SharePoint Foundation 2010,其中 Service Pack 1 (SP1) 。

使用 Move-SPSocialComment cmdlet 可将社交评论从一个页面移动到另一个页面。

该 cmdlet 不移动标签或评级。

有关 SharePoint 产品Windows PowerShell的权限和最新信息,请参阅 Windows PowerShell for SharePoint Server 2016 的联机文档,SharePoint Server 2019参考 (https://go.microsoft.com/fwlink/p/?LinkId=671715)。

示例

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

$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
Move-SPSocialComments -ProfileServiceApplicationProxy $proxy -OldUrl "https://contoso/Pages/oldtest.aspx" -NewUrl "https://contoso/Pages/newtest.aspx"

该示例将社交评论从 oldtest.aspx 移到 newtest.aspx。

参数

-Confirm

提示你在运行 cmdlet 之前进行确认。

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

-NewUrl

指定要将社交注释移到其中的目标 URI。

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

-OldUrl

指定要从中移动社交注释的源 URI。

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

-ProfileServiceApplicationProxy

指定包含要删除的网站订阅的 User Profile Service 应用程序代理。键入的值必须为 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;服务应用程序代理的有效名称(如 UserProfileSvcProxy1);或有效 SPServiceApplicationProxy 对象的实例。

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

-SiteSubscription

指定要在其下运行此服务的帐户。

在宿主环境中,此参数是强制参数;在非宿主环境中,此参数是可选参数。

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

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

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

-工作分配

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.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

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

输入

Microsoft.SharePoint.PowerShell.SPServiceApplicationProxyPipeBind

Microsoft.SharePoint.PowerShell.SPSiteSubscriptionPipeBind Microsoft.SharePoint.PowerShell.SPAssignmentCollection

输出

System.Object