Export (0) Print
Expand All

New-SPExcelServiceApplication

 

Applies to: SharePoint Server 2010

Topic Last Modified: 2010-02-11

Creates a new instance of Excel Services Application.

New-SPExcelServiceApplication -ApplicationPool <SPIisWebServiceApplicationPoolPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-CachingOfUnusedFilesEnable <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-CrossDomainAccessAllowed <SwitchParameter>] [-Default <SwitchParameter>] [-EncryptedUserConnectionRequired <None | Connection>] [-ExternalDataConnectionLifetime <Int32>] [-FileAccessMethod <UseImpersonation | UseFileAccessAccount>] [-LoadBalancingScheme <WorkbookUrl | RoundRobin | Local>] [-MemoryCacheThreshold <Int32>] [-Name <String>] [-PrivateBytesMax <Int32>] [-SessionsPerUserMax <Int32>] [-SiteCollectionAnonymousSessionsMax <Int32>] [-TerminateProcessOnAccessViolation <SwitchParameter>] [-ThrottleAccessViolationsPerSiteCollection <Int32>] [-UnattendedAccountApplicationId <String>] [-UnusedObjectAgeMax <Int32>] [-WhatIf [<SwitchParameter>]] [-WorkbookCache <String>] [-WorkbookCacheSizeMax <Int32>]

The New-SPExcelServiceApplication cmdlet creates a new Excel Services Application Web service application with new settings. After you create a new Excel Services Application Web service application, you can use the Set-SPExcelServiceApplication cmdlet to modify the global settings of the new application.

 

Parameter Required Type Description

ApplicationPool

Required

Microsoft.SharePoint.PowerShell.SPIisWebServiceApplicationPoolPipeBind

Specifies the existing IIS application pool to run the Web service in for the new Excel Service application.

The type must be a valid SPIisWebServiceApplicationPool object.

Name

Required

System.String

Specifies a friendly name for the new Excel Services Application Web service application. The name that you use must be a unique name of an Excel Services Application Web service application that is in this farm. The name can be a maximum of 128 characters. The default value is Service_numofapplications+1.

The type must be a valid string; for example, MyExcelServiceApp1.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

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.

noteNote
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.

CachingOfUnusedFilesEnable

Optional

System.Management.Automation.SwitchParameter

Specifies that files that are no longer used by Excel Services Application can remain in the cache for later use. The default is true when the parameter is not specified on the command.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

CrossDomainAccessAllowed

Optional

System.Management.Automation.SwitchParameter

Specifies that trusted workbooks and data connection files can be requested and rendered by Web Parts or pages that reside in other HTTP domains.

Default

Optional

System.Management.Automation.SwitchParameter

Specifies that the proxy for this service application is added to the default proxy group of the farm.

EncryptedUserConnectionRequired

Optional

Microsoft.Office.Excel.Server.EncryptedConnectionMode

Requires that encryption is used between the end user and the Excel Services Application server. The scope of this setting is the logical server. The default value is None.

The type must be one of the following: None or Connection.

ExternalDataConnectionLifetime

Optional

System.Int32

Specifies the maximum number of seconds that an external data connection can remain open in the connection pool. Valid values include:

-1 Never recycle

1 to 2073600 Remain active 1 second to 24 days.

The default value is 1800.

FileAccessMethod

Optional

Microsoft.Office.Excel.Server.FileAccessMethod

Specifies the authentication method that Excel Services Application uses to retrieve files. UseFileAccessAccount specifies that all workbooks always use the credentials of the service account running Excel Services Application. UseImpersonation specifies that Excel Services Application retrieves the workbook files as the user who is making the request. The default value is UseImpersonation.

The type must be one of the following: UseImpersonation or UseFileAccessAccount.

LoadBalancingScheme

Optional

Microsoft.Office.Excel.Server.LoadBalancingScheme

Specifies the load-balancing schema that is used by the Excel Services Application Web service application for sending requests to different back-end computers that are running Excel Calculation Services. The default value is WorkbookURL.

The type must be one of the following: RoundRobin, Local, or WorkbookURL.

MemoryCacheThreshold

Optional

System.Int32

Specifies the percentage of the maximum private bytes that can be allocated to inactive objects. When the memory cache threshold is exceeded, cached objects that are not currently in use are released. Setting this value to 0 disables caching of inactive objects. The default value is 90.

The type must be an integer in the range of 0 to 95.

PrivateBytesMax

Optional

System.Int32

Specifies the maximum private bytes, in megabytes, used by Excel Services Application. When set to -1, the maximum private bytes defaults to 50 percent of physical memory on the computer. Valid values include -1 for no limit, and any positive integer. The default value is -1.

The type must be -1 or any positive integer.

SessionsPerUserMax

Optional

System.Int32

Specifies the maximum number of sessions allowed for a user. If a user reaches this maximum, the oldest session will be deleted when a new session is started. Valid values include -1 for no limit, and any positive integer. The default value is 25.

The type must be -1 or any positive integer.

SiteCollectionAnonymousSessionsMax

Optional

System.Int32

Specifies the maximum number of anonymous sessions allowed per site collection. A value of 0 specifies that no anonymous sessions are allowed. Valid values include -1 for no limit, 0 to disable the setting, or any positive integer. The default value is 25.

The type must be -1, 0, or any positive integer.

TerminateProcessOnAccessViolation

Optional

System.Management.Automation.SwitchParameter

Terminates Excel Services Application when an access violation occurs in the process.

ThrottleAccessViolationsPerSiteCollection

Optional

System.Int32

Specifies that if a workbook causes an access violation error on Excel Services Application, all files that originate from that workbook’s site collection are blocked from loading for the specified period (in seconds). Existing sessions for files on that site collection are unaffected. Valid values include 0 to disable the setting, and the range of 1 to 2073600 seconds (24 days). The default value is 0.

The type must be an integer value in the range of 0 to 2073600.

UnattendedAccountApplicationId

Optional

System.String

Specifies that the application ID that is used to look up the unattended service account credentials from the secure store service specified by UnattendedAccountSecureServiceAppName. The secure store service is contacted when this parameter is set and specific error cases occur. Valid values are alphanumeric strings with a maximum of 256 characters. The default value is an empty string.

The type must be a valid string of alphanumeric characters; for example, UnattendedServiceAccountID.

noteNote
The unattended account is a single account that all workbooks can use to refresh data. An unattended account is required when workbook connections specify None for authentication, or when any non-Windows credentials are used to refresh data.

UnusedObjectAgeMax

Optional

System.Int32

Specifies the maximum amount of time, in minutes, that objects not currently used in a session are kept in the memory cache. Valid values include -1 for no maximum setting, and a positive integer in the range of 1 to 34560 minutes (24 days). The default value is -1.

The type must be -1, or an integer in the range of 1 to 34560.

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

WorkbookCache

Optional

System.String

Specifies the local file system location of the cache that is used for storing workbooks used by Excel Services Application.

If no value is specified, then the default value is a subdirectory in the system temporary directory.

The type must be a valid path in either of the following forms:

-- C:\folder_name

-- \\server_name\folder_name

WorkbookCacheSizeMax

Optional

System.Int32

Specifies the maximum allowable size, in megabytes, of an individual session. The default value is 0.

The type must be any positive integer.

--------------EXAMPLE 1--------------

New-SPExcelServiceApplication -Name "MyExcelService" -ApplicationPool "SharePoint Services"

This example creates a new instance of Excel Services Application with the display name MyExcelService.

--------------EXAMPLE 2--------------

New-SPExcelServiceApplication -Name "My Excel Service" -ApplicationPool "SharePoint Services" -SessionsPerUserMax 5

This example creates a new instance of Excel Services Application with the display name My Excel Service and allows only five sessions per user for each back-end application server computer that is running Excel Services Application.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft