SQLServerPSModule icon indicating copy to clipboard operation
SQLServerPSModule copied to clipboard

Semicolon in credential breaks connection string

Open tietoevry-camperap opened this issue 5 months ago • 0 comments

Environment:

SqlServer PowerShell Module version: 22.4.5.1 OS: Microsoft Windows Server 2016 Standard OS: Version: 10.0.14393 Build 14393 PS Version: 5.1.14393.8330

Problem:

Password with semicolon is treated as separator in connection string generation, not escaped.

Example invocations:

Invoke-ASCmd -InputFile "$xmlaPath" -Server "$Server" -Credential $SSASCreds

Invoke-ProcessCube -Name "$Cube" -Database "$Database" -ProcessType ProcessFull -Server "$Server" -Credential $SSASCreds

Inputs:

$SSASCreds = [System.Management.Automation.PSCredential]::New("myuser", (ConvertTo-SecureString "MyPass;HasASemicolon" -AsPlainText -Force))

tietoevry-camperap avatar Sep 02 '25 18:09 tietoevry-camperap