SDM upgrade fails with the following error in the UI:
Creation of CDB failed
%TEMP%\casm\install.log shows the error below:
'attrib' is not recognized as an internal or external command
Service Management 17.x
Missing entries in the PATH environment variable
1. Go to Environment Variables (via System Properties) > System Variables > Select Path > Edit > add:
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
2. Save Changes
3. Log out from Windows Session > Log in > Run the installer and upgrade SDM.
KB Article 387315 provides additional information on the CDB creation failure, including other possible causes.