Skip to main content

Enable Authenticode Verification

Summary

This script is used to enable the Authenticode Verification on Windows machines. A reboot is required for the changes to take effect.

Example Agent Procedure Log

TimeActionResultUser
10:36:25 am 23-Dec-24Enable Authenticode VerificationSuccess ELSEkunal.kumar
10:36:25 am 23-Dec-24Execute Powershell CommandSuccess THENkunal.kumar
10:36:24 am 23-Dec-24Execute Powershell Command-0012Results returned to global variable #global:psresult# and saved in Documents tab of server.kunal.kumar
10:36:24 am 23-Dec-24Execute Powershell Command-0012Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/160248129727106/GetFiles/../docs/psoutput.txt with the new contents from c:/kworking/psoutput.txt in THEN step 2.kunal.kumar
10:36:24 am 23-Dec-24Execute Powershell Command-0011Powershell command completed!kunal.kumar
10:36:22 am 23-Dec-24Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Path "HKLM:/Software/Wow6432Node/Microsoft/Cryptography/Wintrust/Config" -ForceOut-Null; Set-ItemProperty -Path "HKLM:/Software/Wow6432Node/Microsoft/Cryptography/Wintrust/Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord -Force" >"c:/kworking/psoutput.txt"
10:36:22 am 23-Dec-24Execute Powershell Command-0010Sending output to global variable.kunal.kumar
10:36:22 am 23-Dec-24Execute Powershell Command-0008New command variable is: -Command "New-Item -Path "HKLM:/Software/Wow6432Node/Microsoft/Cryptography/Wintrust/Config" -ForceOut-Null; Set-ItemProperty -Path "HKLM:/Software/Wow6432Node/Microsoft/Cryptography/Wintrust/Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord -Force"
10:36:22 am 23-Dec-24Execute Powershell Command-0008Custom commands detected as New-Item -Path "HKLM:/Software/Wow6432Node/Microsoft/Cryptography/Wintrust/Config" -ForceOut-Null; Set-ItemProperty -Path "HKLM:/Software/Wow6432Node/Microsoft/Cryptography/Wintrust/Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord -Force
10:36:16 am 23-Dec-24Execute Powershell Command-0002Powershell is present.kunal.kumar
10:36:15 am 23-Dec-24Execute Powershell CommandSuccess THENkunal.kumar
10:36:15 am 23-Dec-24Execute Powershell Command-0012Results returned to global variable #global:psresult# and saved in Documents tab of server.kunal.kumar
10:36:15 am 23-Dec-24Execute Powershell Command-0012Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/160248129727106/GetFiles/../docs/psoutput.txt with the new contents from c:/kworking/psoutput.txt in THEN step 2.kunal.kumar
10:36:14 am 23-Dec-24Execute Powershell Command-0011Powershell command completed!kunal.kumar
10:36:12 am 23-Dec-24Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Path "HKLM:/Software/Microsoft/Cryptography/Wintrust/Config" -ForceOut-Null; Set-ItemProperty -Path "HKLM:/Software/Microsoft/Cryptography/Wintrust/Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord -Force" >"c:/kworking/psoutput.txt"
10:36:12 am 23-Dec-24Execute Powershell Command-0010Sending output to global variable.kunal.kumar
10:36:12 am 23-Dec-24Execute Powershell Command-0008New command variable is: -Command "New-Item -Path "HKLM:/Software/Microsoft/Cryptography/Wintrust/Config" -ForceOut-Null; Set-ItemProperty -Path "HKLM:/Software/Microsoft/Cryptography/Wintrust/Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord -Force"
10:36:12 am 23-Dec-24Execute Powershell Command-0008Custom commands detected as New-Item -Path "HKLM:/Software/Microsoft/Cryptography/Wintrust/Config" -ForceOut-Null; Set-ItemProperty -Path "HKLM:/Software/Microsoft/Cryptography/Wintrust/Config" -Name "EnableCertPaddingCheck" -Value 1 -Type DWord -Force
10:36:06 am 23-Dec-24Execute Powershell Command-0002Powershell is present.kunal.kumar
10:36:05 am 23-Dec-24Windows - 32 or 64 bit OSSuccess THENkunal.kumar
10:36:05 am 23-Dec-24Windows - 32 or 64 bit OS-0011Windows OS is 64-bit.kunal.kumar
10:35:57 am 23-Dec-24Run Now - Enable Authenticode VerificationAdmin kunal.kumar scheduled procedure Run Now - Enable Authenticode Verification to run at Dec 23 2024 10:35 AMkunal.kumar

Output

Agent procedure log.