CPM - What SMB protocol versions are supported by CPM?
Question
What SMB protocol versions are supported by CPM?
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Answer
CPM uses Microsoft API commands ( 'NetUserChangePassword' for a change action, and 'NetUserSetInfo' for a reset (reconcile) action ) to connect to, verify, change and reconcile passwords for Windows accounts.
The 'net use' command makes use of SMB (Server Message Block), and at least one matching SMB protocol (SMB1, SMB2 or SMB3) must be enabled on the target machine AND on the CPM in order for successful password management.
The following table lists the default SMB version for each version of Windows OS:
| SMB Version | Windows Desktop OS | Windows Server OS |
| SMB 1.0 | Windows XP | Server 2003 |
| SMB 2.0 | Windows Vista | Server 2008 |
| SMB 2.1 | Windows 7 | Server 2008 R2 |
| SMB 3.0 | Windows 8 | Server 2012 |
| SMB 3.02 | Windows 8.1 | Server 2012 R2 |
| SMB 3.1.1 | Windows 10+ | Server 2016+ |
You can use Powershell to detect whether or not a version of SMB is enabled on a device, as well as enable or disable a version:
SMBv1
- Detect:
- Get-SmbServerConfiguration | Select EnableSMB1Protocol
- Disable:
- Set-SmbServerConfiguration -EnableSMB1Protocol $false
- Enable:
- Set-SmbServerConfiguration -EnableSMB1Protocol $true
SMB v2/v3
- Detect:
- Get-SmbServerConfiguration | Select EnableSMB2Protocol
- Disable:
- Set-SmbServerConfiguration -EnableSMB2Protocol $false
- Enable:
- Set-SmbServerConfiguration -EnableSMB2Protocol $true
NOTE: You can also disable/enable SMB protocols in the Windows Registry by navigating to the following location:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters