共用方式為


Set-PowerPivotEngineService 指令程式

在伺服器陣列層級設定 PowerPivotEngineService 物件的全域屬性。

語法

Set-PowerPivotEngineService [-Identity] <PowerPivotEngineServicePipeBind> [-UpdateAssemblyInformation <switch>] [-Confirm <switch>] [-ServiceLogOnAsPassword <SecureString>] [-ServiceLogOnAsUserName <string>] [<CommonParameters>]

說明

Set-PowerPivotEngineService 指令程式會更新伺服器陣列中 PowerPivot 引擎服務父物件的屬性。

參數

-Identity <PowerPivotEngineServicePipeBind>

指定要為其更新屬性的父物件。 值必須是物件的有效 GUID 或執行個體。 您可以使用 Get-PowerPivotEngineService 傳回物件的執行個體。

必要項?

false

位置?

0

預設值

接受管線輸入?

true

接受萬用字元?

false

-UpdateAssemblyInformation <switch>

僅用於升級。 如果伺服器陣列中部署的組件版本不同於 SharePoint 組態資料庫中儲存的版本,您可以執行此指令程式以更新組態資料庫中的組件資訊。 可在全域組件中所儲存之 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>

這個指令程式支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。 如需詳細資訊,請參閱<About_CommonParameters>。

輸入和輸出

輸入類型是可透過管道傳送至指令程式的物件類型。 傳回類型是指令程式所傳回的物件類型。

輸入

無。

輸出

無。

範例

C:\PS>$credentials = Get-SPCredential "Contoso\Ann" 
C:\PS>Set-PowerPivotEngineService –ServiceLogOnAsUserName $credentials.UserName -ServiceLogOnAsPassword $credentials.Password

在自訂函數或指令碼中,您可以使用這些認證選項,在另一個使用者的內容中執行伺服器作業。