New-PowerPivotSystemServiceInstance cmdlet

向应用程序服务器添加 PowerPivot 系统服务的新实例。

语法

New-PowerPivotSystemServiceInstance [[-ParentService] <PowerPivotMidTierServicePipeBind>] [-SystemServiceInstanceName <string>] [-Provision] [<CommonParameters>]

说明

New-PowerPivotSystemServiceInstance cmdlet 在您使用 SQL Server 安装程序在本地应用程序服务器上安装 PowerPivot for SharePoint 后在场级别设置新的 PowerPivotSystemService 对象。 在每个应用程序服务器上只能设置一个服务实例。 如果该服务已设置,则无法运行此 cmdlet。

参数

-ParentService <PowerPivotMidTierServicePipeBind>

指定场中 PowerPivot 系统服务父对象的 GUID。 在此版本中,仅允许一个父对象。 您可以使用 Get-PowerPivotSystemService 返回服务对象或其 GUID。

必需?

false

位置?

0

默认值

接受管道输入?

true

接受通配符?

false

-SystemServiceInstanceName <string>

指定标识此对象的名称。

必需?

false

位置?

1

默认值

接受管道输入?

false

接受通配符?

false

Provision [<SwitchParameter>]

使服务在 SharePoint 上可用。 有效值为 $true 或 $false。

必需?

false

位置?

所指定位置

默认值

接受管道输入?

false

接受通配符?

false

<CommonParameters>

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

输入和输出

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

输入

无。

输出

无。

示例 1

C:\PS>New-PowerPivotSystemServiceInstance -Provision:$true

此示例演示该 cmdlet 的最常见的形式。 它向场注册本地应用程序服务器上的 PowerPivot 系统服务。

示例 2

C:\PS>New-PowerPivotSystemServiceInstance -SystemServiceInstanceName "MyPSSInstance" -provision:$false

此示例命名该 PowerPivot 系统服务实例,但不对该实例进行设置。 如果您没有提供名称,则改用默认名称 SQL Server Analysis Services 系统服务实例。 为该服务创建自定义名称是可选的。 您可以命名该服务以便支持测试方案;或者,如果您具有自定义工具或脚本,则可以在以后的步骤中设置该实例。