Get-sqmSsasDeploymentMode
Configuration
sqmSQLTool v1.9.x · Get
DeploymentMode (Multidimensional, Tabular, or SharePoint/PowerPivot) of an SSAS instance. Locates msmdsrv.ini via the Windows service command line and reads the <DeploymentMode> element — entirely read-only, nothing is changed. Companion to Set-sqmSsasDeploymentMode, which corrects it.
Why this matters: SSAS fixes its server mode permanently at setup time via
SERVERMODE. Microsoft's documented remedy for the wrong choice is uninstall + reinstall — there is no supported "switch mode" command, which is exactly why this pair of functions exists.Parameters
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| -InstanceName | string | Optional | MSSQLSERVER | SSAS instance name. A "Server\Instance" prefix (as copied from SSMS) is accepted, the server part is stripped. |
| -EnableException | switch | Switch | $false | Throw immediately instead of logging the error and returning it in the result. |
Execution Flow
Output object
| Field | Contents |
|---|---|
InstanceName | Instance name, with any server prefix stripped. |
ServiceName | Windows service name of the SSAS instance. |
IniPath | Path to msmdsrv.ini. |
DeploymentMode | Multidimensional, Tabular, SharePoint, or Unbekannt(<value>). |
DeploymentModeValue | Raw numeric value from msmdsrv.ini (0/1/2). |
Status / Message | OK or Error, with detail. |
Examples
Check the default instance
Get-sqmSsasDeploymentMode
Check a named instance
Get-sqmSsasDeploymentMode -InstanceName "APSM"
Requirements
Requires local administrator rights on the SSAS server (to read msmdsrv.ini).
See also
Set-sqmSsasDeploymentMode, corrects the mode after installation.