Set-PowerPivotEngineService cmdlet
设置场级别 PowerPivotEngineService 对象的全局属性。
语法
Set-PowerPivotEngineService [-Identity] <PowerPivotEngineServicePipeBind> [-UpdateAssemblyInformation <switch>] [-Confirm <switch>] [-ServiceLogOnAsPassword <SecureString>] [-ServiceLogOnAsUserName <string>] [<CommonParameters>]
说明
Set-PowerPivotEngineService cmdlet 更新场中 PowerPivot 引擎服务父对象的属性。
参数
-Identity <PowerPivotEngineServicePipeBind>
指定要更新其属性的父对象。 其值必须是该对象的有效 GUID 或实例。 您可以使用 Get-PowerPivotEngineService 返回对象的实例。
必需? |
false |
位置? |
0 |
默认值 |
|
接受管道输入? |
true |
接受通配符? |
false |
-UpdateAssemblyInformation <switch>
仅用于升级目的。 如果在场中部署的程序集版本不同于在 SharePoint 配置数据库中存储的版本,则可以运行此 cmdlet 以便更新配置数据库中的程序集信息。 程序集版本信息在全局程序集中存储的 Microsoft.AnalysisServices.SharePoint.Integration.dll 的文件属性中提供。
必需? |
false |
位置? |
1 |
默认值 |
|
接受管道输入? |
false |
接受通配符? |
false |
-ServiceLogOnAsUserName <string>
指定执行操作所基于的域用户帐户。
必需? |
false |
位置? |
所指定位置 |
默认值 |
|
接受管道输入? |
true |
接受通配符? |
false |
-ServiceLogOnAsPassword <SecureString>
指定域用户帐户的密码。
必需? |
false |
位置? |
所指定位置 |
默认值 |
|
接受管道输入? |
true |
接受通配符? |
false |
-Confirm <switch>
在执行命令前提示您进行确认。 默认情况下将启用该值。 若要在命令中跳过确认响应,请在命令中指定 Confirm:$false。
必需? |
false |
位置? |
所指定位置 |
默认值 |
|
接受管道输入? |
false |
接受通配符? |
false |
<CommonParameters>
此 cmdlet 支持以下常用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。 有关详细信息,请参阅 About_CommonParameters。
输入和输出
输入类型是可以传送到 cmdlet 的对象的类型。 返回类型是 cmdlet 所返回的对象的类型。
输入 |
无。 |
输出 |
无。 |
示例
C:\PS>$credentials = Get-SPCredential "Contoso\Ann"
C:\PS>Set-PowerPivotEngineService –ServiceLogOnAsUserName $credentials.UserName -ServiceLogOnAsPassword $credentials.Password
在自定义函数或脚本中,您可以使用这些凭据选项在其他用户环境中运行服务器操作。