TN - 1298 DCOM Harding PowerShell Script
Description
This article from InSource shows to disable DCOM Hardening for AVEVA System Platform deployment using a PowerShell script.
- Author: Rich Brooks
- Published: 11/28/2022
- Applies to: AVEVA Application Server 2020 R2 SP1 and higher
Details
The installation of Microsoft Update KB5004442 - DCOM Hardening prevents platforms from being deployed to Windows 10 machines. A message related to raising the activation authentication level to RPC_C_AUTHN_LEVEL_PKT_INTEGRITY in the client application is seen in the System Event Viewer.
It is necessary to update the registry to disable the DCOM hardening key. A PowerShell script is provided below to make this easy. Run PowerShell as an Administrator and then paste the following script. The required registry key is added instantly to disable DCOM harding.
# Create new items with values
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Ole\AppCompat' -Name 'RequireIntegrityActivationAuthenticationLevel' -Value '0' -PropertyType 'DWORD' –Force
# Get out of the Registry
Pop-Location