Remove-PowerPivotSystemServiceInstance cmdlet

从场中删除 PowerPivot 系统服务实例。

语法

Remove-PowerPivotSystemServiceInstance [-Confirm <switch>] [-DeleteLocal <switch>] [-Identity <PowerPivotMidTierServiceInstancePipeBind>] [<CommonParameters>]

说明

Remove-PowerPivotSystemServiceInstance cmdlet 从场中删除与 PowerPivot 系统服务有关的实例信息。 它不会删除程序文件。 若要永久删除程序文件,您必须卸载它们。

如果您删除 PowerPivot 系统服务,请确保还运行 Remove-PowerPivotEngineServiceInstance 以便删除关联的 Analysis Services 实例,之后使用 Remove-PowerPivotServiceApplication 删除所有 PowerPivot 服务应用程序。 在这些服务都被删除后,服务应用程序将不再运行。

若要还原此更改,可以运行 New-PowerPivotSystemServiceInstance -Provision:$true 以便重新启用实例信息。

参数

-Identity <PowerPivotMidTierServiceInstancePipeBind>

指定要删除的 PowerPivot 系统服务实例的 GUID。 在安装有 PowerPivot for SharePoint 的每个应用程序服务器上只有一个服务实例。

必需?

false

位置?

0

默认值

接受管道输入?

true

接受通配符?

false

-DeleteLocal <switch>

删除在本地计算机上安装的 PowerPivot 系统服务实例,并且允许您不必指定对象标识即删除实例。

必需?

false

位置?

所指定位置

默认值

接受管道输入?

false

接受通配符?

false

-Confirm <switch>

在执行命令前提示您进行确认。 默认情况下将启用该值。 若要在命令中跳过确认响应,请在命令中指定 Confirm:$false。

必需?

false

位置?

所指定位置

默认值

接受管道输入?

false

接受通配符?

false

<CommonParameters>

此 cmdlet 支持以下常用参数:Verbose、Debug、ErrorAction、ErrorVariable、WarningAction、WarningVariable、OutBuffer 和 OutVariable。 有关详细信息,请参阅 About_CommonParameters

输入和输出

输入类型是可以传送到 cmdlet 的对象的类型。 返回类型是 cmdlet 所返回的对象的类型。

输入

无。

输出

无。

示例 1

C:\PS>Remove-PowerPivotSystemServiceInstance -deletelocal

此示例演示如何删除在本地应用程序服务器上运行的 PowerPivot 系统服务实例。

示例 2

C:\PS>Remove-PowerPivotSystemServiceInstance -identity 1234567-890a-bcde-fghijklmn

此示例演示如何基于其标识删除特定的 PowerPivot 系统服务。