HardenTLS.psm1 ERR - SQL Server installation failed. Exit code: -2067922935
127
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:02 PM
Symptom
PSM hardening phase HardenTLS fails with the following error in the 'C:\Windows\Temp\PSMHardening.log':
"PSMHardening log: HardenTLS.psm1 ERR - SQL Server installation failed. Exit code: -2067922935"
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6 Privileged Access Manager (PAM, self-hosted) PSM;Privileged Session Management (PSM) PSM
Cause
The main issue is that the path to the installation files (setup.exe) for SQL may be too long and causing the hardening to fail.
SQL Server installation media on a network share or in a custom folder can cause installation failure if the total length of the path exceeds 260 characters.
Resolution
To correct this issue, utilize Net Use functionality or move the installation setup or the Hardening installation folder to a shorten path.