- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
PVWA and PSM
|
SQL Server Management Studio Version |
Add |
|---|---|
|
2008 |
<Application Name="SSMS2008" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" Method="Publisher" /> |
|
2012 |
<Application Name="SSMS2012" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe" Method="Publisher" /> |
|
2016 |
<Application Name="SSMS2016" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\Ssms.exe" Method="Publisher" /> |
|
2017 |
<Application Name="SSMS2017" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe" Method="Publisher" /> |
|
2018 |
<Application Name="SSMS18" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe" Method="Publisher" /> |
|
2022 |
<Application Name="SSMS19" Type="Exe" Path="C:\Program Files\Microsoft SQL Server Management Studio 19\Common7\IDE\Ssms.exe" Method="Publisher" /> |
|
2025 |
<Application Name="SSMS21" Type="Exe" Path="C:\Program Files\Microsoft SQL Server Management Studio 21\Common7\IDE\Ssms.exe" Method="Publisher" /> |
CD “C:\Program Files (x86)\CyberArk\PSM\Hardening” PSMConfigureAppLocker.ps1
Known Issues:
Work Around: When the editor window is in focus, press ALT+Q+O; the Object Explorer window will be auto-authenticated.
After configuring the PSM-SQLServerMgmtStudio or PSMSQLServerMgmtStudio-Win, when trying to connect you might see an error message with the title "PSM Disconnect Failed", with further dialog: PSMSR133E [<unique identifier>] Failed to create process <Program Path>. Code: 2
The cause of the problem is generally an invalid program path. For example, check to make sure that any program with \Program Files (x86) in the path has a space between the Files and (x86)
To fix this error correct the program path by going to Administration -> Options -> Connection Components and then Target Settings for the connection component.
a. Modify the SQL Server Management Studio <version> processes section, please change the path of the ssms.exe accordingly as per the env:
|
SQL Server Management Studio Version |
Add |
|
2008 |
<Application Name="SSMS2008" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" Method="Publisher" /> |
|
2012 |
<Application Name="SSMS2012" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe" Method="Publisher" /> |
|
2016 |
<Application Name="SSMS2016" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\Ssms.exe" Method="Publisher" /> |
|
2017 |
<Application Name="SSMS2017" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe" Method="Publisher" /> |
|
2018 |
<Application Name="SSMS18" Type="Exe" Path="C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe" Method="Publisher" /> |
|
2022 |
<Application Name="SSMS19" Type="Exe" Path="C:\Program Files\Microsoft SQL Server Management Studio 19\Common7\IDE\Ssms.exe" Method="Publisher" /> |
|
2025 |
<Application Name="SSMS21" Type="Exe" Path="C:\Program Files\Microsoft SQL Server Management Studio 21\Common7\IDE\Ssms.exe" Method="Publisher" /> |
b. Make sure that the paths specified in the PSMConfigureAppLocker.xml match the installation paths of SQL Server Management Studio.
c. Save the PSMConfigureAppLocker.xml configuration file and close it.
d. Open a PowerShell window, and use the following command to start the script (run as administrator)
CD “C:\Program Files (x86)\CyberArk\PSM\Hardening”
.\PSMConfigureAppLocker.ps1
6. Next, update the PSM-SQLServerMgmtStudio and PSMSQLServerMgmtStudio-Win connection components as follows:
7. For PSM-SQLServerMgmtStudio and PSM-SQLServerMgmtStudio-Win: In Target Settings > Client Specific, make sure that the WaitBeforeCmdlineParmsHide parameter value is set to 20000.
8. Expand Target Settings, then select Lock Application Window.
9. For PSM-SQLServerMgmtStudio: Right-click the MainWindowClass parameter and in the pop-up menu, select Revert to Default. This clears the MainWindowClass setting. For PSM-SQLServerMgmtStudio-Win: Set the parameter Enable to No.
Known Issues:
Work Around: When the editor window is in focus, press ALT+Q+O; the Object Explorer window will be auto-authenticated.
After configuring the PSM-SQLServerMgmtStudio or PSMSQLServerMgmtStudio-Win, when trying to connect you might see an error message with the title "PSM Disconnect Failed", with further dialog:
PSMSR133E [<unique identifier>] Failed to create process <Program Path>. Code: 2
The cause of the problem is generally an invalid program path. For example, check to make sure that any program with \Program Files (x86) in the path has a space between the Files and (x86)
To fix this error correct the program path by going to Administration -> Options -> Connection Components and then Target Settings for the connection component.